Fix checkboxes and bulk download

This commit is contained in:
Geomitron
2023-12-25 10:29:57 -06:00
parent 5644ea2447
commit 199374b2e2
12 changed files with 66 additions and 126 deletions

View File

@@ -44,7 +44,7 @@ export class ChartSidebarComponent implements OnInit {
) { }
ngOnInit() {
this.searchService.searchUpdated.subscribe(() => {
this.searchService.newSearch.subscribe(() => {
this.charts = null
this.selectedChart = null
})
@@ -280,8 +280,7 @@ export class ChartSidebarComponent implements OnInit {
* Adds the selected chart to the download queue.
*/
onDownloadClicked() {
this.downloadService.addDownload(this.selectedChart!.md5, `${this.selectedChart!.artist ?? 'Unknown Artist'
} - ${this.selectedChart!.name ?? 'Unknown Name'} (${this.selectedChart!.charter ?? 'Unknown Charter'})`)
this.downloadService.addDownload(this.selectedChart!)
}
public showMenu() {