Repository: ambari Updated Branches: refs/heads/trunk 769249325 -> 485a69dd8
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/485a69dd Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/485a69dd Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/485a69dd Branch: refs/heads/trunk Commit: 485a69dd80aaa21338552e2aaab7b4b42a013e73 Parents: 7692493 Author: Alex Antonenko <[email protected]> Authored: Fri Jun 24 00:08:31 2016 +0300 Committer: Alex Antonenko <[email protected]> Committed: Fri Jun 24 00:39:27 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/485a69dd/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:
