X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/8089b2f5c97b1db9bd826a1b6488f1b060830def..6dd60d7c70a63ac884515387cd8c92bb97433e1b:/apps/workbench/app/views/application/_delete_object_button.html.erb diff --git a/apps/workbench/app/views/application/_delete_object_button.html.erb b/apps/workbench/app/views/application/_delete_object_button.html.erb index 6ece8606a8..4db3aea035 100644 --- a/apps/workbench/app/views/application/_delete_object_button.html.erb +++ b/apps/workbench/app/views/application/_delete_object_button.html.erb @@ -1,5 +1,9 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> + <% if object.deletable? %> - <%= link_to({action: 'destroy', id: object.uuid}, method: :delete, remote: true, data: {confirm: "Really delete #{object.class_for_display.downcase} '#{object.friendly_link_name}'?"}) do %> + <%= link_to({controller: object.class.table_name, action: 'destroy', id: object.uuid}, method: :delete, remote: true, data: {confirm: "Really delete #{object.class_for_display.downcase} '#{object.friendly_link_name}'?"}) do %> <% end %> <% end %>