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/06/01 17:43:00 UTC

[ambari] 12/15: 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-mpack-advisor
in repository https://gitbox.apache.org/repos/asf/ambari.git

commit 4d6993771aca19d27198010de7d205962c9a86fd
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.