You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by xi...@apache.org on 2015/08/03 23:33:36 UTC
ambari git commit: AMBARI-12572-2. Config versions shows not all
versions after save.(xiwang)
Repository: ambari
Updated Branches:
refs/heads/trunk 5cfe6d60d -> 45e8ca90c
AMBARI-12572-2. Config versions shows not all versions after save.(xiwang)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/45e8ca90
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/45e8ca90
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/45e8ca90
Branch: refs/heads/trunk
Commit: 45e8ca90c5645e2d3cbd41c9e733227aeb2e8f69
Parents: 5cfe6d6
Author: Xi Wang <xi...@apache.org>
Authored: Fri Jul 31 16:18:09 2015 -0700
Committer: Xi Wang <xi...@apache.org>
Committed: Mon Aug 3 14:16:52 2015 -0700
----------------------------------------------------------------------
ambari-web/app/mappers/service_config_version_mapper.js | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/45e8ca90/ambari-web/app/mappers/service_config_version_mapper.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mappers/service_config_version_mapper.js b/ambari-web/app/mappers/service_config_version_mapper.js
index 5507648..0ae9879 100644
--- a/ambari-web/app/mappers/service_config_version_mapper.js
+++ b/ambari-web/app/mappers/service_config_version_mapper.js
@@ -91,6 +91,10 @@ App.serviceConfigVersionsMapper = App.QuickDataMapper.create({
}
});
+ // If on config history page, need to clear the model
+ if (App.router.get('currentState.name') === 'configHistory') {
+ this.get('model').find().clear();
+ }
App.store.commit();
App.store.loadMany(this.get('model'), result);
console.timeEnd('App.serviceConfigVersionsMapper');