Browse Source

AMBARI-4803 Service summary called from dashboard is shown wrong. (Mikhail Bayuk via ababiichuk)

aBabiichuk 11 years ago
parent
commit
8b1cae43f2
1 changed files with 5 additions and 2 deletions
  1. 5 2
      ambari-web/app/views/main/service/menu.js

+ 5 - 2
ambari-web/app/views/main/service/menu.js

@@ -74,8 +74,11 @@ App.MainServiceMenuView = Em.CollectionView.extend({
     }.property('content.criticalAlertsCount'),
 
     link: function() {
-      return "#/main/services/" + this.get('content.id') + "/" + App.router.get('currentState.name');
-    }.property('App.router.currentState.name'),
+      var stateName = (['summary','configs'].contains(App.router.get('currentState.name')))
+        ? App.router.get('currentState.name')
+        : 'summary';
+      return "#/main/services/" + this.get('content.id') + "/" + stateName;
+    }.property('App.router.currentState.name', 'parentView.activeServiceId'),
 
     refreshRestartRequiredMessage: function() {
       var restarted, componentsCount, hostsCount, message, tHosts, tComponents;