diff options
author | James Woglom <j@wogloms.net> | 2022-09-19 16:15:24 -0400 |
---|---|---|
committer | James Woglom <j@wogloms.net> | 2022-09-19 16:15:24 -0400 |
commit | a36323677c99ee5696934843b720081553a2b1d2 (patch) | |
tree | d7749bfb96d7772ce06d3e5ba9be29fe937cff08 /ui/src | |
parent | bugfix: resolve full base directory before startswith check (diff) | |
download | metube-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/src')
-rw-r--r-- | ui/src/app/app.component.ts | 7 |
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() { |