X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a2107d5fc7982769c2d667e51656a6e2529d9bc9..84decc8949fc51ec2eaf906fc2c4cbbb3df807dd:/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..45e472fae9 100644 --- a/apps/workbench/app/models/pipeline_instance.rb +++ b/apps/workbench/app/models/pipeline_instance.rb @@ -18,7 +18,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