Hide themes

This commit is contained in:
Pieter Vander Vennet 2021-03-15 16:35:00 +01:00
parent bad2248658
commit 2f9f1aefd1
3 changed files with 6 additions and 2 deletions

View file

@ -150,6 +150,10 @@ export default class LayoutConfig {
}
this.hideFromOverview = json.hideFromOverview ?? false;
// @ts-ignore
if(json.hideInOverview){
throw "The json for "+this.id+" contains a 'hideInOverview'. Did you mean hideFromOverview instead?"
}
this.lockLocation = json.lockLocation ?? false;
this.enableUserBadge = json.enableUserBadge ?? true;
this.enableShareScreen = json.enableShareScreen ?? true;