incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yus...@apache.org
Subject git commit: AMBARI-3438. After stopping active NN, Quick Links don't update until browser refresh. (xiwang via yusaku)
Date Thu, 03 Oct 2013 03:36:30 GMT
Updated Branches:
  refs/heads/trunk 4343a0b84 -> dd330b8b7


AMBARI-3438. After stopping active NN, Quick Links don't update until browser refresh. (xiwang
via yusaku)


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

Branch: refs/heads/trunk
Commit: dd330b8b73b930389260634906415b7365cb3380
Parents: 4343a0b
Author: Yusaku Sako <yusaku@hortonworks.com>
Authored: Wed Oct 2 20:34:29 2013 -0700
Committer: Yusaku Sako <yusaku@hortonworks.com>
Committed: Wed Oct 2 20:36:20 2013 -0700

----------------------------------------------------------------------
 ambari-web/app/views/common/quick_view_link_view.js | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/dd330b8b/ambari-web/app/views/common/quick_view_link_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/quick_view_link_view.js b/ambari-web/app/views/common/quick_view_link_view.js
index 0c3b9dd..319d7d8 100644
--- a/ambari-web/app/views/common/quick_view_link_view.js
+++ b/ambari-web/app/views/common/quick_view_link_view.js
@@ -151,11 +151,12 @@ App.QuickViewLinks = Em.View.extend({
     return this.get('content.quickLinks').map(function (item) {
       if (host == 'noActiveNN') {
         item.set('disabled', true);
-        return item;
-      }
-      var protocol = self.setProtocol(item.get('service_id'));
-      if (item.get('template')) {
-        item.set('url', item.get('template').fmt(protocol,host));
+      } else {
+        item.set('disabled', false);
+        var protocol = self.setProtocol(item.get('service_id'));
+        if (item.get('template')) {
+          item.set('url', item.get('template').fmt(protocol,host));
+        }
       }
       return item;
     });


Mime
View raw message