mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-11 22:29:38 +00:00
fix: Column spaceing and selection
This commit is contained in:
@@ -12,7 +12,7 @@ export class SelectionService {
|
||||
|
||||
public selections: { [groupId: number]: boolean | undefined } = {}
|
||||
|
||||
constructor(searchService: SearchService) {
|
||||
constructor(private searchService: SearchService) {
|
||||
searchService.newSearch.subscribe(() => {
|
||||
this.selections = {}
|
||||
this.deselectAll()
|
||||
@@ -33,8 +33,8 @@ export class SelectionService {
|
||||
|
||||
selectAll() {
|
||||
this.allSelected = true
|
||||
for (const groupId in this.selections) {
|
||||
this.selections[groupId] = true
|
||||
for (const song of this.searchService.groupedSongs) {
|
||||
this.selections[song[0].groupId] = true
|
||||
}
|
||||
this.selectAllChangedEmitter.emit(true)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user