ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rz...@apache.org
Subject ambari git commit: AMBARI-12441. No save/discard window appeared after navigating from Configs to Heatmaps (rzang)
Date Tue, 21 Jul 2015 01:26:23 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 ec2bbdd1e -> 1d1f25f5b


AMBARI-12441. No save/discard window appeared after navigating from Configs to Heatmaps (rzang)


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

Branch: refs/heads/branch-2.1
Commit: 1d1f25f5bab7bfd1a233c520b44dd04482d8baa0
Parents: ec2bbdd
Author: Richard Zang <rzang@apache.org>
Authored: Mon Jul 20 18:23:25 2015 -0700
Committer: Richard Zang <rzang@apache.org>
Committed: Mon Jul 20 18:24:58 2015 -0700

----------------------------------------------------------------------
 ambari-web/app/routes/main.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/1d1f25f5/ambari-web/app/routes/main.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/routes/main.js b/ambari-web/app/routes/main.js
index 78d8243..2023ef4 100644
--- a/ambari-web/app/routes/main.js
+++ b/ambari-web/app/routes/main.js
@@ -703,7 +703,7 @@ module.exports = Em.Route.extend(App.RouterRedirections, {
       }),
       showInfo: function (router, event) {
         var mainServiceInfoConfigsController = App.router.get('mainServiceInfoConfigsController');
-        if (event.context === 'summary' && mainServiceInfoConfigsController.hasUnsavedChanges())
{
+        if (event.context !== 'configs' && mainServiceInfoConfigsController.hasUnsavedChanges())
{
           mainServiceInfoConfigsController.showSavePopup(router.get('location.lastSetURL').replace('configs',
'summary'));
           return false;
         }


Mime
View raw message