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 2017/02/14 11:47:58 UTC

ambari git commit: AMBARI-20002. UI on Admin page-> Auto Start tab is not consistent (onechiporenko)

Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 771274a47 -> ad772ddd6


AMBARI-20002. UI on Admin page-> Auto Start tab is not consistent (onechiporenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/ad772ddd
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/ad772ddd
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/ad772ddd

Branch: refs/heads/branch-2.5
Commit: ad772ddd630fa0b4f4606798139d14445c235925
Parents: 771274a
Author: Oleg Nechiporenko <on...@apache.org>
Authored: Tue Feb 14 12:48:59 2017 +0200
Committer: Oleg Nechiporenko <on...@apache.org>
Committed: Tue Feb 14 12:48:59 2017 +0200

----------------------------------------------------------------------
 ambari-web/app/views/main/admin/service_auto_start.js | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/ad772ddd/ambari-web/app/views/main/admin/service_auto_start.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/admin/service_auto_start.js b/ambari-web/app/views/main/admin/service_auto_start.js
index ce487d0..b7f80df 100644
--- a/ambari-web/app/views/main/admin/service_auto_start.js
+++ b/ambari-web/app/views/main/admin/service_auto_start.js
@@ -54,10 +54,12 @@ App.MainAdminServiceAutoStartView = Em.View.extend({
         self.set('switcherValue', data[0].properties.recovery_enabled === 'true');
         self.set('savedRecoveryEnabled', self.get('switcherValue'));
         self.get('controller').loadComponentsConfigs().then(function () {
-          Em.run.later('sync', function() {
-            // plugin should be initiated after applying binding for switcherValue
-            self.initSwitcher();
-          }.bind(self), 10);
+          Em.run.next(function() {
+            Em.run.next(function() {
+              // plugin should be initiated after applying binding for switcherValue
+              self.initSwitcher();
+            });
+          });
           self.set('isLoaded', true);
         });
       });