Repository: ambari Updated Branches: refs/heads/branch-2.4 79962b25b -> ac239c694
AMBARI-17409. Ranger has error count while adding Ranger KMS (alexantonenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/ac239c69 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/ac239c69 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/ac239c69 Branch: refs/heads/branch-2.4 Commit: ac239c694c2e6b8907ac47624356026eb62d4c3d Parents: 79962b2 Author: Alex Antonenko <[email protected]> Authored: Fri Jun 24 00:08:31 2016 +0300 Committer: Alex Antonenko <[email protected]> Committed: Fri Jun 24 00:40:03 2016 +0300 ---------------------------------------------------------------------- ambari-web/app/models/configs/objects/service_config.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/ac239c69/ambari-web/app/models/configs/objects/service_config.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/models/configs/objects/service_config.js b/ambari-web/app/models/configs/objects/service_config.js index fcbd34f..87a29c9 100644 --- a/ambari-web/app/models/configs/objects/service_config.js +++ b/ambari-web/app/models/configs/objects/service_config.js @@ -54,7 +54,7 @@ App.ServiceConfig = Ember.Object.extend({ return this.get('activeProperties').filter(function(c) { return !c.get('isValid') || !c.get('isValidOverride'); }); - }.property('[email protected]', '[email protected]'), + }.property('[email protected]', '[email protected]', 'activeProperties.length'), observeErrors: function() { this.get('configCategories').setEach('errorCount', 0); @@ -73,6 +73,10 @@ App.ServiceConfig = Ember.Object.extend({ observeForeignKeys: function() { //TODO refactor or move this logic to other place + Em.run.once(this, 'updateVisibilityByForeignKeys'); + }.observes('[email protected]'), + + updateVisibilityByForeignKeys: function() { var configs = this.get('configs'); configs.forEach(function (item) { if (item.get('isVisible')) { @@ -90,7 +94,7 @@ App.ServiceConfig = Ember.Object.extend({ } } }); - }.observes('[email protected]'), + }, /** * Collection of properties that were changed:
