[41138] Fix buttons on team planner index

pull/10220/head
Oliver Günther 3 years ago
parent ad6c57cf1d
commit eb7f6d590b
  1. 2
      frontend/src/app/features/boards/index-page/boards-index-page.component.html
  2. 3
      modules/team_planner/app/cells/team_planner/row_cell.rb

@ -97,9 +97,9 @@
<button class="op-link" <button class="op-link"
type="button" type="button"
(click)="destroyBoard(board)" (click)="destroyBoard(board)"
[title]="text.delete"
> >
<op-icon icon-classes="icon icon-delete"></op-icon> <op-icon icon-classes="icon icon-delete"></op-icon>
<span [textContent]="text.delete"></span>
</button> </button>
</td> </td>
</tr> </tr>

@ -61,8 +61,9 @@ module TeamPlanner
def delete_link def delete_link
if table.current_user.allowed_to?(:manage_team_planner, project) if table.current_user.allowed_to?(:manage_team_planner, project)
link_to( link_to(
op_icon('icon icon-delete'), '',
project_team_planner_path(project, query.id), project_team_planner_path(project, query.id),
class: 'op-link icon icon-delete',
method: :delete, method: :delete,
data: { data: {
confirm: I18n.t(:text_are_you_sure), confirm: I18n.t(:text_are_you_sure),

Loading…
Cancel
Save