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 2013/12/26 13:27:23 UTC
git commit: AMBARI-3805. "Add service" if nothing to add.
(onechiporenko)
Updated Branches:
refs/heads/trunk c74293552 -> 05e8fe3d7
AMBARI-3805. "Add service" if nothing to add. (onechiporenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/05e8fe3d
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/05e8fe3d
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/05e8fe3d
Branch: refs/heads/trunk
Commit: 05e8fe3d7def440d2791aeb5e8e8400f0e891f48
Parents: c742935
Author: Oleg Nechiporenko <on...@apache.org>
Authored: Thu Dec 26 14:19:20 2013 +0200
Committer: Oleg Nechiporenko <on...@apache.org>
Committed: Thu Dec 26 14:27:17 2013 +0200
----------------------------------------------------------------------
ambari-web/app/controllers/main/service.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/05e8fe3d/ambari-web/app/controllers/main/service.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/service.js b/ambari-web/app/controllers/main/service.js
index 81a72bd..7984cd1 100644
--- a/ambari-web/app/controllers/main/service.js
+++ b/ambari-web/app/controllers/main/service.js
@@ -35,13 +35,14 @@ App.MainServiceController = Em.ArrayController.extend({
}.property('App.router.clusterController.isLoaded'),
isAllServicesInstalled: function() {
+ if (!this.get('content.content')) return false;
var availableServices = App.db.getServices();
if (!availableServices) {
this.loadAvailableServices();
availableServices = App.db.getServices();
}
- return this.get('content').length == availableServices.length;
- }.property('content.@each', 'content.length'),
+ return this.get('content.content').length == availableServices.length;
+ }.property('content.content.@each', 'content.content.length'),
loadAvailableServices: function() {
App.ajax.send({