projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
3489: Indicate initially selected project in chooser. closes #3544
[arvados.git]
/
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 ec29b03a2d3f77e8dedfe62370b7c0119d985e0b..428c14f8282961f65e6ad69e9197794f62997d54 100644
(file)
--- 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
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 \
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',
action_name: 'OK',
action_href: pipeline_instance_path(id: object.uuid),
action_method: 'patch',