Repository: ambari Updated Branches: refs/heads/branch-2.4 ca3368ed1 -> 5f6056a55
AMBARI-17851. User is able to reach alerts page without being logged in (onechiporenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/5f6056a5 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/5f6056a5 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/5f6056a5 Branch: refs/heads/branch-2.4 Commit: 5f6056a55bd9bce5e48eaba0ba211ada515bfdf1 Parents: ca3368e Author: Oleg Nechiporenko <onechipore...@apache.org> Authored: Fri Jul 22 13:59:34 2016 +0300 Committer: Oleg Nechiporenko <onechipore...@apache.org> Committed: Fri Jul 22 15:22:11 2016 +0300 ---------------------------------------------------------------------- ambari-web/app/routes/main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/5f6056a5/ambari-web/app/routes/main.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/routes/main.js b/ambari-web/app/routes/main.js index 8d33a68..45c1cd3 100644 --- a/ambari-web/app/routes/main.js +++ b/ambari-web/app/routes/main.js @@ -17,7 +17,6 @@ */ var App = require('app'); -var stringUtils = require('utils/string_utils'); module.exports = Em.Route.extend(App.RouterRedirections, { route: '/main', @@ -342,7 +341,7 @@ module.exports = Em.Route.extend(App.RouterRedirections, { exitRoute: function (router, context, callback) { var controller = router.get('mainAlertDefinitionDetailsController'); - if (controller.get('isEditing')) { + if (App.router.get('clusterController.isLoaded') && controller.get('isEditing')) { controller.showSavePopup(callback); } else { callback();