Merge remote-tracking branch 'origin/master' into 2044-share-button
[arvados.git] / apps / workbench / app / models / pipeline_instance.rb
index da6116e91626ad2590ec042e6256c92c7455aa22..45e472fae923077bf850727272ed412193747a06 100644 (file)
@@ -16,9 +16,10 @@ class PipelineInstance < ArvadosBase
       end
     end
   end
-
+  
   def attribute_editable?(attr)
-    attr == 'name'
+    attr && (attr.to_sym == :name ||
+            (attr.to_sym == :components and (self.state == 'New' || self.state == 'Ready')))
   end
 
   def attributes_for_display