Use angular primitives to toggle
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user