positive conditional return. uneccessary component name.
authorjulesstp <julianmcarlin@gmail.com>
Fri, 29 Aug 2014 18:00:49 +0000 (14:00 -0400)
committerjulesstp <julianmcarlin@gmail.com>
Fri, 29 Aug 2014 18:00:49 +0000 (14:00 -0400)
enyo-client/application/source/models/site.js
enyo-client/application/source/views/workspace.js

index acacf73..4597280 100644 (file)
@@ -97,11 +97,10 @@ white:true*/
 
     couldCreate: function () {
       // Look to see if there are sites in the sites cache. If so, restrict new for Postbooks.
-      if (XM.sites.length) {
-        return false;
-      } else {
+      if (!XM.sites.length) {
         return XM.Info.prototype.couldCreate.apply(this, arguments);
       }
+      return false;
     }
 
   });
index 6c146e4..f8cece2 100644 (file)
@@ -2779,7 +2779,7 @@ strict: false*/
     title: "_site".loc(),
     model: "XM.Site",
     components: [
-      {kind: "Panels", name: "panels", arrangerKind: "CarouselArranger",
+      {kind: "Panels", arrangerKind: "CarouselArranger",
         fit: true, components: [
         {kind: "XV.Groupbox", name: "mainPanel", components: [
           {kind: "onyx.GroupboxHeader", content: "_overview".loc()},