aboutsummaryrefslogtreecommitdiff
path: root/ui/src
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src')
-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