You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by on...@apache.org on 2015/05/22 17:02:51 UTC
ambari git commit: AMBARI-11342. Infinite spinner on configs Advanced
tab after install. (onechiporenko)
Repository: ambari
Updated Branches:
refs/heads/trunk ee1353709 -> 1a45bf10a
AMBARI-11342. Infinite spinner on configs Advanced tab after install. (onechiporenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/1a45bf10
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/1a45bf10
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/1a45bf10
Branch: refs/heads/trunk
Commit: 1a45bf10aecb6be2f677c675719e0a3197037a03
Parents: ee13537
Author: Oleg Nechiporenko <on...@apache.org>
Authored: Fri May 22 17:58:03 2015 +0300
Committer: Oleg Nechiporenko <on...@apache.org>
Committed: Fri May 22 17:58:03 2015 +0300
----------------------------------------------------------------------
ambari-web/app/views/common/configs/service_config_view.js | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/1a45bf10/ambari-web/app/views/common/configs/service_config_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/configs/service_config_view.js b/ambari-web/app/views/common/configs/service_config_view.js
index 1070ada..a616df7 100644
--- a/ambari-web/app/views/common/configs/service_config_view.js
+++ b/ambari-web/app/views/common/configs/service_config_view.js
@@ -116,10 +116,6 @@ App.ServiceConfigView = Em.View.extend({
willDestroyElement: function() {
this.get('tabs').setEach('isActive', false);
- var advancedTab = this.get('tabs').findProperty('isAdvanced', true);
- if (advancedTab) {
- advancedTab.set('isRendered', false);
- }
},
/**
@@ -159,6 +155,11 @@ App.ServiceConfigView = Em.View.extend({
return Em.A([]);
}
var tabs = App.Tab.find().filterProperty('serviceName', this.get('controller.selectedService.serviceName'));
+ tabs.setEach('isActive', false);
+ var advancedTab = tabs.findProperty('isAdvanced', true);
+ if (advancedTab) {
+ advancedTab.set('isRendered', false);
+ }
this.processTabs(tabs);
this.pickActiveTab(tabs);
return tabs;