ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From onechipore...@apache.org
Subject ambari git commit: AMBARI-17851. User is able to reach alerts page without being logged in (onechiporenko)
Date Fri, 22 Jul 2016 12:22:34 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk b5b9493ff -> cabf68299


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/cabf6829
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/cabf6829
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/cabf6829

Branch: refs/heads/trunk
Commit: cabf6829989ee4f6cc1f9a0b2b3ab35d309c5149
Parents: b5b9493
Author: Oleg Nechiporenko <onechiporenko@apache.org>
Authored: Fri Jul 22 13:59:34 2016 +0300
Committer: Oleg Nechiporenko <onechiporenko@apache.org>
Committed: Fri Jul 22 15:22:27 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/cabf6829/ambari-web/app/routes/main.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/routes/main.js b/ambari-web/app/routes/main.js
index ebf9cb3..8d19e0f 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();


Mime
View raw message