Theme layerable func

This commit is contained in:
Mo Bitar
2018-07-20 19:47:57 -05:00
parent 8a8d37dd43
commit a8d59700ed
2 changed files with 3 additions and 3 deletions

View File

@@ -594,11 +594,11 @@ class ComponentManager {
if(targetComponent.active) {
this.deactivateComponent(targetComponent);
} else {
if(targetComponent.content_type == "SN|Theme" && !targetComponent.package_info.layerable) {
if(targetComponent.content_type == "SN|Theme" && !targetComponent.isLayerable()) {
// Deactive currently active theme if new theme is not layerable
var activeThemes = this.getActiveThemes();
for(var theme of activeThemes) {
if(theme && !theme.package_info.layerable) {
if(theme && !theme.isLayerable()) {
this.deactivateComponent(theme);
}
}

View File

@@ -38,7 +38,7 @@
"karma-phantomjs-launcher": "^1.0.2",
"sn-stylekit": "1.0.15",
"standard-file-js": "file:~/Desktop/sf/sfjs",
"sn-models": "0.1.0",
"sn-models": "0.1.1",
"connect": "^3.6.6",
"mocha": "^5.2.0",
"serve-static": "^1.13.2",