make tvshow navlink and pages and backend disableable with a command line parameter

This commit is contained in:
2021-06-08 21:55:54 +02:00
parent f7b7df5934
commit a60f5a30b8
9 changed files with 72 additions and 15 deletions

View File

@ -9,6 +9,7 @@ class StaticInfos {
private darktheme: boolean = true;
private videopath: string = '';
private tvshowpath: string = '';
private TVShowsEnabled: boolean = false;
/**
* check if the current theme is the dark theme
@ -71,6 +72,14 @@ class StaticInfos {
* load the Password page manually
*/
loadPasswordPage: ((callback?: () => void) => void) | undefined = undefined;
setTVShowsEnabled(TVShowEnabled: boolean): void {
this.TVShowsEnabled = TVShowEnabled;
}
isTVShowEnabled(): boolean {
return this.TVShowsEnabled;
}
}
export default new StaticInfos();