Repository: ambari Updated Branches: refs/heads/trunk 6b3431c20 -> 7ce1d7a16
AMBARI-12596. Adding/Deleting a zookeeper component on a host results in JS error. (jaimin) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/7ce1d7a1 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/7ce1d7a1 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/7ce1d7a1 Branch: refs/heads/trunk Commit: 7ce1d7a16d00a4426691d781538e9b1f25f73722 Parents: 6b3431c Author: Jaimin Jetly <[email protected]> Authored: Thu Jul 30 16:47:58 2015 -0700 Committer: Jaimin Jetly <[email protected]> Committed: Thu Jul 30 16:47:58 2015 -0700 ---------------------------------------------------------------------- ambari-web/app/controllers/main/host/details.js | 11 +++++++++++ 1 file changed, 11 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/7ce1d7a1/ambari-web/app/controllers/main/host/details.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/main/host/details.js b/ambari-web/app/controllers/main/host/details.js index e72cb5b..7dde6e9 100644 --- a/ambari-web/app/controllers/main/host/details.js +++ b/ambari-web/app/controllers/main/host/details.js @@ -1062,6 +1062,8 @@ App.MainHostDetailsController = Em.Controller.extend({ /** * Load configs + * This function when used without a callback should be always used from successcallback function of the promise `App.router.get('mainController').isLoading.call(App.router.get('clusterController'), 'isServiceContentFullyLoaded').done(promise)` + * This is required to make sure that service metrics API determining the HA state of components is loaded * @method loadConfigs */ loadConfigs: function (callback) { @@ -2318,5 +2320,14 @@ App.MainHostDetailsController = Em.Controller.extend({ wizardControllerName: this.get('name'), localdb: App.db.data }); + }, + + /** + * + * @param callback + */ + isServiceMetricsLoaded: function(callback) { + var self = this; + App.router.get('mainController').isLoading.call(App.router.get('clusterController'), 'isServiceContentFullyLoaded').done(callback); } });
