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

@@ -1,5 +1,5 @@
<td>
<input #checkAllCheckbox type="checkbox" class="checkbox" (click)="$event.stopPropagation()" [(ngModel)]="selected" />
<input type="checkbox" class="checkbox" (click)="$event.stopPropagation()" [(ngModel)]="selected" />
</td>
<td>
<span *ngIf="song.length > 1" class="rounded-sm bg-accent text-accent-content px-1 mr-1 font-bold">{{ song.length }}</span> {{ song[0].name }}

View File

@@ -13,7 +13,7 @@ export class ResultTableRowComponent implements OnInit {
constructor(private selectionService: SelectionService) { }
ngOnInit() {
this.selectionService.selections[this.groupId] = false
this.selectionService.selections[this.groupId] = this.selectionService.isAllSelected()
}
get groupId() {