diff options
Diffstat (limited to 'js/panels/css-panel/style-sheet.reel/style-sheet.js')
-rw-r--r-- | js/panels/css-panel/style-sheet.reel/style-sheet.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/js/panels/css-panel/style-sheet.reel/style-sheet.js b/js/panels/css-panel/style-sheet.reel/style-sheet.js index 7afe977f..98e20b2c 100644 --- a/js/panels/css-panel/style-sheet.reel/style-sheet.js +++ b/js/panels/css-panel/style-sheet.reel/style-sheet.js | |||
@@ -55,6 +55,12 @@ exports.StyleSheet = Montage.create(Component, { | |||
55 | this.nameText.element.classList.remove('ss-dirty'); | 55 | this.nameText.element.classList.remove('ss-dirty'); |
56 | } | 56 | } |
57 | 57 | ||
58 | if(this.disabled) { | ||
59 | this.element.classList.add('ss-disabled'); | ||
60 | } else { | ||
61 | this.element.classList.remove('ss-disabled'); | ||
62 | } | ||
63 | |||
58 | } | 64 | } |
59 | }, | 65 | }, |
60 | 66 | ||
@@ -182,6 +188,7 @@ exports.StyleSheet = Montage.create(Component, { | |||
182 | this.disableButton.label = label; | 188 | this.disableButton.label = label; |
183 | 189 | ||
184 | this._disabled = disable; | 190 | this._disabled = disable; |
191 | this.needsDraw = true; | ||
185 | } | 192 | } |
186 | }, | 193 | }, |
187 | 194 | ||