aboutsummaryrefslogtreecommitdiff
path: root/ui/src/app/app.component.ts
diff options
context:
space:
mode:
authorAlex Shnitman <alexta69@gmail.com>2023-02-04 11:09:36 +0200
committerAlex Shnitman <alexta69@gmail.com>2023-02-04 11:09:36 +0200
commitea7a7b07113362718687dfbc778ae35323498e01 (patch)
treee46c3470576ddbe13261fb68fdcbfe27d621d90d /ui/src/app/app.component.ts
parentMerge pull request #216 from kaytwo/master (diff)
downloadmetube-ea7a7b07113362718687dfbc778ae35323498e01.tar.gz
metube-ea7a7b07113362718687dfbc778ae35323498e01.tar.bz2
metube-ea7a7b07113362718687dfbc778ae35323498e01.zip
Fix boolean env variables (closes #213)
Diffstat (limited to 'ui/src/app/app.component.ts')
-rw-r--r--ui/src/app/app.component.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/src/app/app.component.ts b/ui/src/app/app.component.ts
index 7ef7da4..d4a1270 100644
--- a/ui/src/app/app.component.ts
+++ b/ui/src/app/app.component.ts
@@ -82,11 +82,11 @@ export class AppComponent implements AfterViewInit {
}
showAdvanced() {
- return this.downloads.configuration['CUSTOM_DIRS'] == 'true';
+ return this.downloads.configuration['CUSTOM_DIRS'];
}
allowCustomDir(tag: string) {
- if (this.downloads.configuration['CREATE_CUSTOM_DIRS'] == 'true') {
+ if (this.downloads.configuration['CREATE_CUSTOM_DIRS']) {
return tag;
}
return false;
bgstack15