Bläddra i källkod

AMBARI-1142. On Notification Popup, clicking "go to nagios UI" doesn't load nagios UI. (Arun Kandregula via yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1431829 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 år sedan
förälder
incheckning
6eed7569a3

+ 3 - 0
CHANGES.txt

@@ -675,6 +675,9 @@ AMBARI-666 branch (unreleased changes)
 
   BUG FIXES
 
+  AMBARI-1142. On Notification Popup, clicking "go to nagios UI" doesn't
+  load nagios UI. (Arun Kandregula via yusaku)
+
   AMBARI-1125. Graphs "degrade" over time. (Srimanth Gunturi via yusaku)
 
   AMBARI-1124. Boxes on services page need min height or something to keep

+ 1 - 1
ambari-web/app/templates/main/dashboard/alert_notification_popup.hbs

@@ -26,5 +26,5 @@
 {{/if}}
 <p class="alertsPopupLinks">
     <a href="#" {{action selectService}}>{{t services.alerts.goToService}}</a>
-    <a {{bindAttr href="view.nagiosUrl"}} target="_blank" {{action "closePopup" on="mouseUp"}}>{{t services.alerts.goToNagios}}</a>
+    <a href="#" {{action "viewNagiosUrl" on="mouseUp"}}>{{t services.alerts.goToNagios}}</a>
 </p>

+ 5 - 0
ambari-web/app/views/main/dashboard.js

@@ -113,6 +113,11 @@ App.MainDashboardView = Em.View.extend({
           this.get('parentView').hide();
         },
 
+        viewNagiosUrl: function () {
+          window.open(this.get('nagiosUrl'), "_blank");
+          this.closePopup();
+        },
+
         selectService: function () {
           App.router.transitionTo('services.service.summary', event.context)
           this.closePopup();