mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-11 14:19:38 +00:00
Linked checkboxes to "download selected" button
This commit is contained in:
@@ -25,4 +25,20 @@ export class StatusBarComponent {
|
||||
showDownloads() {
|
||||
$('#downloadsModal').modal('show')
|
||||
}
|
||||
|
||||
onSongChecked(result: SongResult) {
|
||||
if (this.selectedResults.findIndex(oldResult => oldResult.id == result.id) == -1) {
|
||||
this.selectedResults.push(result)
|
||||
}
|
||||
}
|
||||
|
||||
onSongUnchecked(result: SongResult) {
|
||||
this.selectedResults = this.selectedResults.filter(oldResult => oldResult.id != result.id)
|
||||
}
|
||||
|
||||
downloadSelected() {
|
||||
// TODO send query to get versions; for any with more than one chart, show modal for confirmation:
|
||||
// "some selected songs have more than one chart: ___" [download all charts for each song] [deselect these songs] [X]
|
||||
console.log(this.selectedResults)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user