Fix boolean env variables (closes #213)

This commit is contained in:
Alex Shnitman
2023-02-04 11:09:36 +02:00
parent 3e6c63646c
commit ea7a7b0711
5 changed files with 16 additions and 5 deletions

View File

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