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

pull/177/head
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';
}
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() {