diff options
author | James Woglom <j@wogloms.net> | 2022-08-29 19:02:00 -0400 |
---|---|---|
committer | James Woglom <j@wogloms.net> | 2022-08-29 19:02:00 -0400 |
commit | bbfde99aeb84d226a0de3ea15a439d18766d7ee4 (patch) | |
tree | 8ab3f80eb04cd3c5e1dc5272697dbb4b709f6bef /ui/src/app/app.component.ts | |
parent | show error if static assets are not found (diff) | |
download | metube-bbfde99aeb84d226a0de3ea15a439d18766d7ee4.tar.gz metube-bbfde99aeb84d226a0de3ea15a439d18766d7ee4.tar.bz2 metube-bbfde99aeb84d226a0de3ea15a439d18766d7ee4.zip |
Use angular primitives to toggle
Diffstat (limited to 'ui/src/app/app.component.ts')
-rw-r--r-- | ui/src/app/app.component.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/src/app/app.component.ts b/ui/src/app/app.component.ts index a9b46a3..f9e5a41 100644 --- a/ui/src/app/app.component.ts +++ b/ui/src/app/app.component.ts @@ -19,6 +19,7 @@ export class AppComponent implements AfterViewInit { quality: string; format: string; addInProgress = false; + showFolderDropdown = false; darkMode: boolean; @ViewChild('queueMasterCheckbox') queueMasterCheckbox: MasterCheckboxComponent; @@ -114,6 +115,10 @@ export class AppComponent implements AfterViewInit { this.quality = exists ? this.quality : 'best' } + clickFolderDropdown() { + this.showFolderDropdown = !this.showFolderDropdown; + } + addDownload(url?: string, quality?: string, format?: string) { url = url ?? this.addUrl quality = quality ?? this.quality |