aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Panel.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Panel.reel')
-rwxr-xr-xjs/panels/Panel.reel/Panel.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/js/panels/Panel.reel/Panel.js b/js/panels/Panel.reel/Panel.js
index 14b25c36..0c5f0b4b 100755
--- a/js/panels/Panel.reel/Panel.js
+++ b/js/panels/Panel.reel/Panel.js
@@ -120,7 +120,12 @@ exports.Panel = Montage.create(Component, {
120 this.panelContent.content[0].controller.currentDocument = this._currentDocument; 120 this.panelContent.content[0].controller.currentDocument = this._currentDocument;
121 } 121 }
122 122
123 this.disabled = this._currentDocument.currentView !== "design"; 123 if(!value) {
124 this.disabled = true;
125 } else {
126 this.disabled = this._currentDocument.currentView !== "design";
127 }
128
124 } 129 }
125 }, 130 },
126 131