From f92a5549b580c9574d1029acf2d18961dd7adbcd Mon Sep 17 00:00:00 2001 From: Isaac Grynsztein Date: Tue, 10 Mar 2020 02:28:48 -0400 Subject: [PATCH] implemented allowSubscriptions in frontend --- src/app/app.component.html | 2 +- src/app/app.component.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/app.component.html b/src/app/app.component.html index f96e0d0d..fb2927b8 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -3,7 +3,7 @@
- +
diff --git a/src/app/app.component.ts b/src/app/app.component.ts index e6612e24..2f4ef706 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -34,6 +34,7 @@ export class AppComponent implements OnInit { topBarTitle = 'Youtube Downloader'; defaultTheme = null; allowThemeChange = null; + allowSubscriptions = false; @ViewChild('sidenav', {static: false}) sidenav: MatSidenav; @ViewChild('hamburgerMenu', {static: false, read: ElementRef}) hamburgerMenuButton: ElementRef; @@ -61,6 +62,7 @@ export class AppComponent implements OnInit { const themingExists = result['YoutubeDLMaterial']['Themes']; this.defaultTheme = themingExists ? result['YoutubeDLMaterial']['Themes']['default_theme'] : 'default'; this.allowThemeChange = themingExists ? result['YoutubeDLMaterial']['Themes']['allow_theme_change'] : true; + this.allowSubscriptions = result['YoutubeDLMaterial']['Subscriptions']['allow_subscriptions']; // sets theme to config default if it doesn't exist if (!localStorage.getItem('theme')) {