ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jai...@apache.org
Subject [41/50] [abbrv] ambari git commit: AMBARI-20729.Need way to explicitly ask for workflow name(Venkata Sairam via padmapriyanitt)
Date Tue, 11 Apr 2017 18:29:29 GMT
AMBARI-20729.Need way to explicitly ask for workflow name(Venkata Sairam via padmapriyanitt)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/953cc9c7
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/953cc9c7
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/953cc9c7

Branch: refs/heads/ambari-rest-api-explorer
Commit: 953cc9c741bf5354de6010b84bb8a59aaaa305c8
Parents: eff2b43
Author: padmapriyanitt <padmapriyanitt@gmail.com>
Authored: Tue Apr 11 15:35:26 2017 +0530
Committer: padmapriyanitt <padmapriyanitt@gmail.com>
Committed: Tue Apr 11 15:35:26 2017 +0530

----------------------------------------------------------------------
 .../src/main/resources/ui/app/components/flow-designer.js      | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/953cc9c7/contrib/views/wfmanager/src/main/resources/ui/app/components/flow-designer.js
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/components/flow-designer.js
b/contrib/views/wfmanager/src/main/resources/ui/app/components/flow-designer.js
index cccf6d0..e3f3718 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/components/flow-designer.js
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/components/flow-designer.js
@@ -116,6 +116,7 @@ export default Ember.Component.extend(FindNodeMixin, Validations, {
   isDraft: false,
   jobConfigProperties: Ember.A([]),
   saveJobService : Ember.inject.service('save-job'),
+  isDefaultNameForWFEnabled : false,
   initialize : function(){
     var id = 'cy-' + Math.ceil(Math.random() * 1000);
     this.set('cyId', id);
@@ -140,7 +141,10 @@ export default Ember.Component.extend(FindNodeMixin, Validations, {
         this.restoreWorkflow();
       }
     }
-    if(Ember.isBlank(this.get('workflow.name'))){
+    /*
+       This block will enable/disable giving default name for workflow
+    */
+    if(Ember.isBlank(this.get('workflow.name')) && this.get('isDefaultNameForWFEnabled'))
{
       this.set('workflow.name', Ember.copy(this.get('tabInfo.name')));
     }
   }.on('didInsertElement'),


Mime
View raw message