ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aonis...@apache.org
Subject [7/9] ambari git commit: AMBARI-20705.Issue while adding custom job.properties(M Madhan Mohan Reddy via venkatasairam.lanka)
Date Wed, 12 Apr 2017 09:14:44 GMT
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/964a1fb8
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/964a1fb8
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/964a1fb8

Branch: refs/heads/branch-3.0-perf
Commit: 964a1fb803ace27223232ed10ae7d57431e20448
Parents: 8b508a6
Author: Venkata Sairam <venkatasairam.lanka@gmail.com>
Authored: Tue Apr 11 17:02:08 2017 +0530
Committer: Andrew Onishuk <aonishuk@hortonworks.com>
Committed: Wed Apr 12 12:14:25 2017 +0300

----------------------------------------------------------------------
 .../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/964a1fb8/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/964a1fb8/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>


Mime
View raw message