You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by jg...@apache.org on 2018/05/31 12:20:43 UTC

[ambari] branch branch-feature-AMBARI-14714 updated: Clear clusterData when user is not logged in.

This is an automated email from the ASF dual-hosted git repository.

jgolieb pushed a commit to branch branch-feature-AMBARI-14714
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/branch-feature-AMBARI-14714 by this push:
     new 6a531ca  Clear clusterData when user is not logged in.
6a531ca is described below

commit 6a531ca06cebb7aa63d4b7448e3f2da5992d4c46
Author: Jason Golieb <jg...@hortonworks.com>
AuthorDate: Thu May 24 16:06:28 2018 -0400

    Clear clusterData when user is not logged in.
---
 ambari-web/app/router.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ambari-web/app/router.js b/ambari-web/app/router.js
index 2c11aa9..4917319 100644
--- a/ambari-web/app/router.js
+++ b/ambari-web/app/router.js
@@ -950,6 +950,10 @@ App.Router = Em.Router.extend({
           } else {
             //key to parse URI for prefered path to route
             router.savePreferedPath(location, '?targetURI=');
+            //clear clusterData if user is not logged in
+            //so that it is requested when they log in,
+            //even if they don't refresh the browser
+            router.set('clusterData', null);
           }
         });
       },

-- 
To stop receiving notification emails like this one, please contact
jgolieb@apache.org.