Explorar o código

AMBARI-1354. "No alerts" badge on the Host Detail page should be green, not red. (jaimin)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1443244 13f79535-47bb-0310-9956-ffa450edef68
Jaimin Jetly %!s(int64=12) %!d(string=hai) anos
pai
achega
a199c843cf

+ 2 - 0
CHANGES.txt

@@ -255,6 +255,8 @@ Trunk (unreleased changes):
 
  BUG FIXES
 
+ AMBARI-1354. "No alerts" badge on the Host Detail page should be green, not red. (jaimin)
+
  AMBARI-1353. "Missing translation" shown in Job Browser. (jaimin)
 
  AMBARI-1351. Provide consistent ordering of hosts in heatmap. (jaimin)

+ 1 - 0
ambari-web/app/messages.js

@@ -442,6 +442,7 @@ Em.I18n.translations = {
   'hosts.host.stop.popup.header':'Confirmation',
   'hosts.host.start.popup.body':'Are you sure?',
   'hosts.host.stop.popup.body':'Are you sure?',
+  'hosts.host.alert.noAlerts':'No alerts',
   'hosts.host.healthStatus.heartBeatNotReceived':'The server has not received a heartbeat from this host for more than 3 minutes.',
   'hosts.host.healthStatus.mastersDown':"The following master components are down:\n",
   'hosts.host.healthStatus.slavesDown':"The following slave components are down:\n",

+ 1 - 1
ambari-web/app/templates/main/host/details.hbs

@@ -21,7 +21,7 @@
   {{#if view.content.alertsCount}}
     <span class="label label-important alerts-count" {{action "showAlertsPopup" content target="App.router.mainHostController"}}>{{view.content.alertsCount}}</span>
   {{else}}
-    <span class="label label-important alerts-count">No alerts</span>
+    <span class="label label-success alerts-count">{{t hosts.host.alert.noAlerts}}</span>
   {{/if}}
   <div><a href="javascript:void(null)" data-toggle="modal" {{action backToHostsList}}><i class="icon-arrow-left"></i>&nbsp;{{t hosts.host.back}}</a></div>
 <!--   {{#if App.isAdmin}} -->