You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by nc...@apache.org on 2017/04/12 13:49:02 UTC

[17/35] ambari git commit: AMBARI-20705.Issue while adding custom job.properties(M Madhan Mohan Reddy via venkatasairam.lanka)

AMBARI-20705.Issue while adding custom job.properties(M Madhan Mohan Reddy via venkatasairam.lanka)


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

Branch: refs/heads/branch-feature-AMBARI-12556
Commit: d3036fdaaf8b28f062a3f8fa4527a9bccf3df927
Parents: a214d80
Author: Venkata Sairam <ve...@gmail.com>
Authored: Tue Apr 11 17:02:08 2017 +0530
Committer: Venkata Sairam <ve...@gmail.com>
Committed: Tue Apr 11 17:02:08 2017 +0530

----------------------------------------------------------------------
 .../src/main/resources/ui/app/components/global-config.js       | 5 +++++
 .../resources/ui/app/templates/components/global-config.hbs     | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/d3036fda/contrib/views/wfmanager/src/main/resources/ui/app/components/global-config.js
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/components/global-config.js b/contrib/views/wfmanager/src/main/resources/ui/app/components/global-config.js
index efe8385..dd90844 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/components/global-config.js
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/components/global-config.js
@@ -30,6 +30,7 @@ export default Ember.Component.extend({
       this.set("actionModel.configuration",{});
       this.set("actionModel.configuration.property", Ember.A([]));
     }
+    this.sendAction('register','globalConfigurations',this);
   }.on('init'),
   saveClicked : false,
   initialize : function(){
@@ -46,12 +47,16 @@ export default Ember.Component.extend({
     }.bind(this));
   }.on('didInsertElement'),
   actions : {
+    register(component, context){
+      this.set('nameValueContext', context);
+    },
     close (){
       this.$('#global_properties_dialog').modal('hide');
       this.set('saveClicked', false);
     },
     save(){
       this.$('#global_properties_dialog').modal('hide');
+      this.get("nameValueContext").trigger("bindInputPlaceholder");
       this.set('saveClicked', true);
     },
     openFileBrowser(model, context){

http://git-wip-us.apache.org/repos/asf/ambari/blob/d3036fda/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/global-config.hbs
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/global-config.hbs b/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/global-config.hbs
index e3d49ec..7231bf5 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/global-config.hbs
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/templates/components/global-config.hbs
@@ -51,7 +51,7 @@
           <div class=" panel panel-default">
             <div class="panel-heading">Properties</div>
             <div class="panel-body handlerPanel">
-              {{#name-value-config configuration=actionModel.configuration}}{{/name-value-config}}
+              {{#name-value-config configuration=actionModel.configuration register="register"}}{{/name-value-config}}
             </div>
           </div>
         </form>