UI clutter cleanup and reorganization

This commit is contained in:
Alex Shnitman
2025-06-02 22:32:23 +03:00
parent d15ec69d23
commit 7ac542d25c
2 changed files with 162 additions and 72 deletions

View File

@@ -1,7 +1,7 @@
import { Component, ViewChild, ElementRef, AfterViewInit } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { faTrashAlt, faCheckCircle, faTimesCircle, IconDefinition } from '@fortawesome/free-regular-svg-icons';
import { faRedoAlt, faSun, faMoon, faCircleHalfStroke, faCheck, faExternalLinkAlt, faDownload } from '@fortawesome/free-solid-svg-icons';
import { faRedoAlt, faSun, faMoon, faCircleHalfStroke, faCheck, faExternalLinkAlt, faDownload, faFileImport, faFileExport, faCopy } from '@fortawesome/free-solid-svg-icons';
import { CookieService } from 'ngx-cookie-service';
import { map, Observable, of } from 'rxjs';
@@ -38,6 +38,7 @@ export class AppComponent implements AfterViewInit {
importInProgress = false;
cancelImportFlag = false;
versionInfo: string | null = null;
isAdvancedOpen = false;
@ViewChild('queueMasterCheckbox') queueMasterCheckbox: MasterCheckboxComponent;
@ViewChild('queueDelSelected') queueDelSelected: ElementRef;
@@ -59,6 +60,9 @@ export class AppComponent implements AfterViewInit {
faCircleHalfStroke = faCircleHalfStroke;
faDownload = faDownload;
faExternalLinkAlt = faExternalLinkAlt;
faFileImport = faFileImport;
faFileExport = faFileExport;
faCopy = faCopy;
constructor(public downloads: DownloadsService, private cookieService: CookieService, private http: HttpClient) {
this.format = cookieService.get('metube_format') || 'any';
@@ -451,4 +455,8 @@ export class AppComponent implements AfterViewInit {
}
});
}
toggleAdvanced() {
this.isAdvancedOpen = !this.isAdvancedOpen;
}
}