X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9da4a83c2cb602e872bb606503fa438dd3296864..20c594c3c683a492132c0fc105241689ee116c10:/apps/workbench/app/models/pipeline_instance.rb diff --git a/apps/workbench/app/models/pipeline_instance.rb b/apps/workbench/app/models/pipeline_instance.rb index 93e950945b..aad7cfc4cc 100644 --- a/apps/workbench/app/models/pipeline_instance.rb +++ b/apps/workbench/app/models/pipeline_instance.rb @@ -1,6 +1,10 @@ class PipelineInstance < ArvadosBase attr_accessor :pipeline_template + def self.goes_in_folders? + true + end + def update_job_parameters(new_params) self.components[:steps].each_with_index do |step, i| step[:params].each do |param| @@ -19,7 +23,7 @@ class PipelineInstance < ArvadosBase def attribute_editable?(attr) attr && (attr.to_sym == :name || - (attr.to_sym == :components and self.state == 'New')) + (attr.to_sym == :components and (self.state == 'New' || self.state == 'Ready'))) end def attributes_for_display