ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From onechipore...@apache.org
Subject git commit: AMBARI-3805. "Add service" if nothing to add. (onechiporenko)
Date Thu, 26 Dec 2013 12:27:23 GMT
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 <onechiporenko@apache.org>
Authored: Thu Dec 26 14:19:20 2013 +0200
Committer: Oleg Nechiporenko <onechiporenko@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({


Mime
View raw message