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:35:55 GMT
Updated Branches:
  refs/heads/branch-1.4.1 83d1b5e33 -> a7e53faa0


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

Branch: refs/heads/branch-1.4.1
Commit: a7e53faa0768ce7e0f7c2709029a98b2dd8bcb4c
Parents: 83d1b5e
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:34:29 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/a7e53faa/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