9587: display name instead of clickable link and remove tags
[arvados.git] / apps / workbench / app / views / trash_items / _untrash_item.html.erb
index 7fd7af772341bc9bf5c64f8512743e6369b0565b..a40a4be7e1e74a6b6df96123b14eff54cae8ab69 100644 (file)
@@ -1,5 +1,5 @@
 <% if object.editable? %>
-  <%= link_to({action: 'untrash_item', id: object.uuid}, remote: true, data: {confirm: "Un-trash #{object.class_for_display.downcase} '#{object.friendly_link_name}'?"}) do %>
+  <%= link_to({action: 'untrash_items', selection: [object.uuid]}, remote: true, method: :post, data: {confirm: "Un-trash #{object.class_for_display.downcase} '#{object.friendly_link_name}'?"}) do %>
     <i class="fa fa-fw fa-recycle"></i>
   <% end %>
 <% end %>