X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c28309c9482d47c99d26718fab7b1d866e035142..82386abaf8f818a64cd730b9af0e0cfa97a6d0ae:/apps/workbench/app/helpers/application_helper.rb diff --git a/apps/workbench/app/helpers/application_helper.rb b/apps/workbench/app/helpers/application_helper.rb index ec29b03a2d..428c14f828 100644 --- a/apps/workbench/app/helpers/application_helper.rb +++ b/apps/workbench/app/helpers/application_helper.rb @@ -260,9 +260,14 @@ module ApplicationHelper display_value = value_info[:link_name] end end + if (attr == :components) and (subattr.size > 2) + chooser_title = "Choose a dataset for #{object.component_input_title(subattr[0], subattr[2])}:" + else + chooser_title = "Choose a dataset:" + end modal_path = choose_collections_path \ - ({ title: 'Choose a dataset:', - filters: [['tail_uuid', '=', object.owner_uuid]].to_json, + ({ title: chooser_title, + filters: [['owner_uuid', '=', object.owner_uuid]].to_json, action_name: 'OK', action_href: pipeline_instance_path(id: object.uuid), action_method: 'patch',