Repository: ambari Updated Branches: refs/heads/trunk 9c75be753 -> 5989a30dd
AMBARI-6457. Services requiring restart link does not point to a page which allows service restart. (Max Shepel via akovalenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/5989a30d Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/5989a30d Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/5989a30d Branch: refs/heads/trunk Commit: 5989a30dd61ef6a74f268470cd57cae689ffa800 Parents: 9c75be7 Author: Aleksandr Kovalenko <akovale...@hortonworks.com> Authored: Thu Jul 10 20:26:32 2014 +0300 Committer: Aleksandr Kovalenko <akovale...@hortonworks.com> Committed: Thu Jul 10 20:52:18 2014 +0300 ---------------------------------------------------------------------- ambari-web/app/templates/main/service/menu_item.hbs | 2 +- ambari-web/app/views/main/service/menu.js | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/5989a30d/ambari-web/app/templates/main/service/menu_item.hbs ---------------------------------------------------------------------- diff --git a/ambari-web/app/templates/main/service/menu_item.hbs b/ambari-web/app/templates/main/service/menu_item.hbs index 1d9d710..17100aa 100644 --- a/ambari-web/app/templates/main/service/menu_item.hbs +++ b/ambari-web/app/templates/main/service/menu_item.hbs @@ -24,5 +24,5 @@ {{view.alertsCount}} </span> {{/if}} - <i rel="tooltip" {{bindAttr class=":icon-refresh :restart-required-service view.content.isRestartRequired::hidden" data-original-title="view.restartRequiredMessage"}}></i> + <i rel="tooltip" {{action goToConfigs target="view"}}{{bindAttr class=":icon-refresh :restart-required-service view.content.isRestartRequired::hidden" data-original-title="view.restartRequiredMessage"}}></i> </a> http://git-wip-us.apache.org/repos/asf/ambari/blob/5989a30d/ambari-web/app/views/main/service/menu.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/views/main/service/menu.js b/ambari-web/app/views/main/service/menu.js index 562ddf0..879d13e 100644 --- a/ambari-web/app/views/main/service/menu.js +++ b/ambari-web/app/views/main/service/menu.js @@ -85,6 +85,11 @@ App.MainServiceMenuView = Em.CollectionView.extend({ return "#/main/services/" + this.get('content.id') + "/" + stateName; }.property('App.router.currentState.name', 'parentView.activeServiceId', 'isConfigurable'), + goToConfigs: function () { + App.router.transitionTo('service.configs', this.get('content')); + App.router.set('currentState.name', 'configs'); + }, + refreshRestartRequiredMessage: function() { var restarted, componentsCount, hostsCount, message, tHosts, tComponents; restarted = this.get('content.restartRequiredHostsAndComponents'); @@ -177,6 +182,11 @@ App.TopNavServiceMenuView = Em.CollectionView.extend({ return "#/main/services/" + this.get('content.id') + "/" + stateName; }.property('App.router.currentState.name', 'parentView.activeServiceId','isConfigurable'), + goToConfigs: function () { + App.router.transitionTo('service.configs', this.get('content')); + App.router.set('currentState.name', 'configs'); + }, + refreshRestartRequiredMessage: function() { var restarted, componentsCount, hostsCount, message, tHosts, tComponents; restarted = this.get('content.restartRequiredHostsAndComponents');