ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsai...@apache.org
Subject ambari git commit: AMBARI-20793.Project manager window is not opening for the second time(Venkata Sairam)
Date Tue, 25 Apr 2017 07:18:51 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 56c0e736d -> c09c5c41c


AMBARI-20793.Project manager window is not opening for the second time(Venkata Sairam)


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

Branch: refs/heads/branch-2.5
Commit: c09c5c41c0f3fe73b18b86464c7e0356d275f68b
Parents: 56c0e73
Author: Venkata Sairam <venkatasairam.lanka@gmail.com>
Authored: Tue Apr 25 12:44:36 2017 +0530
Committer: Venkata Sairam <venkatasairam.lanka@gmail.com>
Committed: Tue Apr 25 12:48:07 2017 +0530

----------------------------------------------------------------------
 .../src/main/resources/ui/app/components/drafts-wf.js    |  1 -
 .../main/resources/ui/app/components/recent-projects.js  | 11 ++++++++---
 2 files changed, 8 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/c09c5c41/contrib/views/wfmanager/src/main/resources/ui/app/components/drafts-wf.js
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/components/drafts-wf.js b/contrib/views/wfmanager/src/main/resources/ui/app/components/drafts-wf.js
index ed448d9..f6965f7 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/components/drafts-wf.js
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/components/drafts-wf.js
@@ -46,7 +46,6 @@ export default Ember.Component.extend({
     },
     set(key, value) {
       this.set('recentFiles', value);
-
       var score = 0, condition = true, searchTxt = this.get("search").toLowerCase(), isWorkflow
= this.get("isWorkflow"), isCoordinator = this.get("isCoordinator"), isBundle = this.get("isBundle");
       return this.get("recentFiles").filter( (role) => {
         score = 0

http://git-wip-us.apache.org/repos/asf/ambari/blob/c09c5c41/contrib/views/wfmanager/src/main/resources/ui/app/components/recent-projects.js
----------------------------------------------------------------------
diff --git a/contrib/views/wfmanager/src/main/resources/ui/app/components/recent-projects.js
b/contrib/views/wfmanager/src/main/resources/ui/app/components/recent-projects.js
index bbc51cc..8ed9e54 100644
--- a/contrib/views/wfmanager/src/main/resources/ui/app/components/recent-projects.js
+++ b/contrib/views/wfmanager/src/main/resources/ui/app/components/recent-projects.js
@@ -18,10 +18,15 @@
 import Ember from 'ember';
 
 export default Ember.Component.extend({
+  rendered : function(){
+    this.$("#projectsList").on("hidden.bs.modal", function () {
+      this.sendAction("close");
+    }.bind(this));
+  }.on('didInsertElement'),
   actions: {
-  	close(){
-  		this.sendAction('close');
-  	},
+    close() {
+      this.sendAction('close');
+    },
     editWorkflow ( path, type ) {
       this.sendAction('editWorkflow', path, type);
     }


Mime
View raw message