Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 659b46a5c -> c45643696


AMBARI-19724 Refreshing the page (browser refresh) when on the tez view goes 
back to the main views page (non admin user). (atkach)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/c4564369
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/c4564369
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/c4564369

Branch: refs/heads/branch-2.5
Commit: c45643696d656d2c41d771848a829c208fe512b7
Parents: 659b46a
Author: Andrii Tkach <[email protected]>
Authored: Thu Jan 26 16:59:28 2017 +0200
Committer: Andrii Tkach <[email protected]>
Committed: Thu Jan 26 16:59:28 2017 +0200

----------------------------------------------------------------------
 ambari-web/app/routes/main.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/c4564369/ambari-web/app/routes/main.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/routes/main.js b/ambari-web/app/routes/main.js
index 880c071..7abe22b 100644
--- a/ambari-web/app/routes/main.js
+++ b/ambari-web/app/routes/main.js
@@ -42,7 +42,10 @@ module.exports = Em.Route.extend(App.RouterRedirections, {
                         router.get('mainController').initialize();
                       });
                     } else {
-                      App.router.transitionTo('main.views.index');
+                      // Don't transit to Views when user already on View page
+                      if (App.router.currentState.name !== 'viewDetails') {
+                        App.router.transitionTo('main.views.index');
+                      }
                       App.router.get('clusterController').set('isLoaded', 
true); // hide loading bar
                     }
                   });

Reply via email to