Repository: ambari Updated Branches: refs/heads/branch-1.6.1 2be24be3b -> b38012920
AMBARI-6362. Strange Config page shown after clicking around on 2k-node cluster (causes config corruption) (alexantonenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/b3801292 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/b3801292 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/b3801292 Branch: refs/heads/branch-1.6.1 Commit: b3801292027f80e9d7eeabc458c440b2e4388159 Parents: 2be24be Author: Alex Antonenko <[email protected]> Authored: Wed Jul 2 21:22:19 2014 +0300 Committer: Alex Antonenko <[email protected]> Committed: Wed Jul 2 21:22:19 2014 +0300 ---------------------------------------------------------------------- ambari-web/app/views/common/configs/services_config.js | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/b3801292/ambari-web/app/views/common/configs/services_config.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/views/common/configs/services_config.js b/ambari-web/app/views/common/configs/services_config.js index 9f5b8af..1c66e7d 100644 --- a/ambari-web/app/views/common/configs/services_config.js +++ b/ambari-web/app/views/common/configs/services_config.js @@ -420,6 +420,14 @@ App.ServiceConfigsByCategoryView = Ember.View.extend({ }); }, + willDestroyElement: function () { + if (this.get('parentView.controller.name') == 'mainServiceInfoConfigsController') { + this.get('categoryConfigsAll').forEach(function (item) { + item.set('isVisible', false); + }); + } + }, + /** * If added/removed a serverConfigObject, this property got updated. * Without this property, all serviceConfigs Objects will show up even if some was collapsed before.
