Repository: ambari Updated Branches: refs/heads/trunk 0d33d14dc -> 4b9ef03bf
AMBARI-4726. HBase Master HA: quick links wrong msg if no active master. (xiwang via yusaku) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/4b9ef03b Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4b9ef03b Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4b9ef03b Branch: refs/heads/trunk Commit: 4b9ef03bf9cfadd841a5e3078d0a52b7eb80f234 Parents: 0d33d14 Author: Yusaku Sako <[email protected]> Authored: Wed Feb 19 11:52:09 2014 -0800 Committer: Yusaku Sako <[email protected]> Committed: Wed Feb 19 11:52:09 2014 -0800 ---------------------------------------------------------------------- ambari-web/app/views/common/quick_view_link_view.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/4b9ef03b/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 ac509fb..93460fc 100644 --- a/ambari-web/app/views/common/quick_view_link_view.js +++ b/ambari-web/app/views/common/quick_view_link_view.js @@ -120,6 +120,8 @@ App.QuickViewLinks = Em.View.extend({ } else { host = component.get('host.publicHostName'); } + } else { + host = 'noActiveHbaseMaster'; } break; case "YARN": @@ -144,7 +146,7 @@ App.QuickViewLinks = Em.View.extend({ ]; } else { quickLinks = this.get('content.quickLinks').map(function (item) { - if (host == 'noActiveNN') { + if (host == 'noActiveNN' || host == 'noActiveHbaseMaster') { item.set('disabled', true); } else { item.set('disabled', false);
