X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/90fc79852a995fd8e665cf48ae20c49a9bbc78eb..0e9443678fc7fd4862b76a10184dc7357a75155d:/apps/workbench/app/views/application/_choose.html.erb
diff --git a/apps/workbench/app/views/application/_choose.html.erb b/apps/workbench/app/views/application/_choose.html.erb
index fc161397d2..4e1503bde5 100644
--- a/apps/workbench/app/views/application/_choose.html.erb
+++ b/apps/workbench/app/views/application/_choose.html.erb
@@ -3,7 +3,7 @@
@@ -61,7 +61,12 @@
<% if project_filters.any? %>
data-infinite-content-params-from-project-dropdown="<%= {filters: project_filters, project_uuid: project_filters.last.last}.to_json %>"
<% end %>
- data-infinite-content-href="<%= url_for partial: true %>">
+ <%
+ action_data = JSON.parse params['action_data'] if params['action_data']
+ use_preview_sel = action_data ? action_data['use_preview_selection'] : false
+ %>
+ data-infinite-content-href="<%= url_for partial: true,
+ use_preview_selection: use_preview_sel %>">
<% if preview_pane %>