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);
}
}