Use angular primitives to toggle

This commit is contained in:
James Woglom
2022-08-29 19:02:00 -04:00
parent 8857878ec2
commit bbfde99aeb
3 changed files with 24 additions and 4 deletions

View File

@@ -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