X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/fc6c801e7448c34b3b916813a8792e32f22bb7a8..52bf3c0924da239488fff3ed9907c3478ee44e6b:/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 ccb88351a7..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| @@ -18,7 +22,8 @@ class PipelineInstance < ArvadosBase end def attribute_editable?(attr) - attr.to_sym == :name || (attr.to_sym == :components and self.active == nil) + attr && (attr.to_sym == :name || + (attr.to_sym == :components and (self.state == 'New' || self.state == 'Ready'))) end def attributes_for_display