attempt to fix issue where folder is sent by frontend as {folder: "foo"} instead of string

This commit is contained in:
James Woglom 2022-09-19 16:15:24 -04:00
parent a07e1ed06c
commit a36323677c
1 changed files with 5 additions and 2 deletions

View File

@ -85,8 +85,11 @@ export class AppComponent implements AfterViewInit {
return this.downloads.configuration['CUSTOM_DIRS'] == 'true'; return this.downloads.configuration['CUSTOM_DIRS'] == 'true';
} }
allowCustomDir() { allowCustomDir(tag: string) {
return this.downloads.configuration['CREATE_CUSTOM_DIRS'] == 'true'; if (this.downloads.configuration['CREATE_CUSTOM_DIRS'] == 'true') {
return tag;
}
return false;
} }
isAudioType() { isAudioType() {