Przeglądaj źródła

AMBARI-2122. Improve navigation when jumping from one page to Host Details page and back. (yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1482167 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 lat temu
rodzic
commit
0458578dae

+ 3 - 0
CHANGES.txt

@@ -293,6 +293,9 @@ Trunk (unreleased changes):
 
  IMPROVEMENTS
 
+ AMBARI-2122. Improve navigation when jumping from one page to Host Details
+ page and back. (yusaku)
+
  AMBARI-2121. Allow Nagios user to be customized during install. (yusaku)
 
  AMBARI-2111. Enable customization of smoke test user. (yusaku)

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

@@ -816,7 +816,6 @@ Em.I18n.translations = {
   'services.hbase.master.error':'None of the HBase masters is active',
 
   'hosts.host.add':'Add New Hosts',
-  'hosts.host.back':'Back to Hosts',
   'hosts.table.noHosts':'No hosts to display',
   
   'hosts.selectHostsDialog.title': 'Select Exception Hosts',

+ 2 - 2
ambari-web/app/routes/main.js

@@ -518,8 +518,8 @@ module.exports = Em.Route.extend({
       }
     }),
 
-    backToHostsList: function (router, event) {
-      router.transitionTo('hosts.index');
+    back: function (router, event) {
+      window.history.back();
     },
 
     showDetails: function (router, event) {

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

@@ -23,7 +23,7 @@
   {{else}}
     <span class="label label-success alerts-count" {{action "showAlertsPopup" content target="App.router.mainHostController"}}>{{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>
+  <div><a href="javascript:void(null)" data-toggle="modal" {{action back}}><i class="icon-arrow-left"></i>&nbsp;{{t common.back}}</a></div>
 <!--   {{#if App.isAdmin}} -->
 <!--   <div class="host-maintenance"> -->
 <!--     <div class="host-maintenance-btn btn-group display-inline-block"> -->