From a36323677c99ee5696934843b720081553a2b1d2 Mon Sep 17 00:00:00 2001 From: James Woglom Date: Mon, 19 Sep 2022 16:15:24 -0400 Subject: attempt to fix issue where folder is sent by frontend as {folder: "foo"} instead of string --- ui/src/app/app.component.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ui/src') 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() { -- cgit