aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorJames Woglom <j@wogloms.net>2022-09-19 16:15:24 -0400
committerJames Woglom <j@wogloms.net>2022-09-19 16:15:24 -0400
commita36323677c99ee5696934843b720081553a2b1d2 (patch)
treed7749bfb96d7772ce06d3e5ba9be29fe937cff08 /ui
parentbugfix: resolve full base directory before startswith check (diff)
downloadmetube-a36323677c99ee5696934843b720081553a2b1d2.tar.gz
metube-a36323677c99ee5696934843b720081553a2b1d2.tar.bz2
metube-a36323677c99ee5696934843b720081553a2b1d2.zip
attempt to fix issue where folder is sent by frontend as {folder: "foo"} instead of string
Diffstat (limited to 'ui')
-rw-r--r--ui/src/app/app.component.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/ui/src/app/app.component.ts b/ui/src/app/app.component.ts
index 20db8b8..7ef7da4 100644
--- a/ui/src/app/app.component.ts
+++ b/ui/src/app/app.component.ts
@@ -85,8 +85,11 @@ export class AppComponent implements AfterViewInit {
return this.downloads.configuration['CUSTOM_DIRS'] == 'true';
}
- allowCustomDir() {
- return this.downloads.configuration['CREATE_CUSTOM_DIRS'] == 'true';
+ allowCustomDir(tag: string) {
+ if (this.downloads.configuration['CREATE_CUSTOM_DIRS'] == 'true') {
+ return tag;
+ }
+ return false;
}
isAudioType() {
bgstack15