You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by jo...@apache.org on 2017/04/26 18:01:16 UTC

[10/34] ambari git commit: AMBARI-20793.Project manager window is not opening for the second time(Venkata Sairam)

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/c3206b85
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c3206b85
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c3206b85

Branch: refs/heads/branch-feature-AMBARI-12556
Commit: c3206b859fb82bad8c08f126ffa613b2314e6967
Parents: ed61200
Author: Venkata Sairam <ve...@gmail.com>
Authored: Tue Apr 25 12:44:36 2017 +0530
Committer: Venkata Sairam <ve...@gmail.com>
Committed: Tue Apr 25 12:46:00 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/c3206b85/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/c3206b85/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);
     }