update angular

This commit is contained in:
2025-01-02 15:01:59 +01:00
parent 73d3ecfd42
commit 802c309679
199 changed files with 13745 additions and 11691 deletions

View File

@@ -8,8 +8,9 @@
></ngx-mat-select-search>
</mat-option>
<mat-option *ngFor="let song of filteredSongs()" [value]="song.id">{{
song.title
}}</mat-option>
song.title
}}
</mat-option>
</mat-select>
</mat-form-field>
</div>

View File

@@ -11,7 +11,7 @@ describe('AddSongComponent', () => {
void TestBed.configureTestingModule({
declarations: [AddSongComponent],
}).compileComponents();
})
}),
);
beforeEach(() => {

View File

@@ -13,6 +13,7 @@ import {ShowService} from '../../../modules/shows/services/show.service';
templateUrl: './add-song.component.html',
styleUrls: ['./add-song.component.less'],
changeDetection: ChangeDetectionStrategy.OnPush,
standalone: false,
})
export class AddSongComponent {
@Input() public songs: Song[] | null = null;
@@ -21,7 +22,8 @@ export class AddSongComponent {
@Input() public addedLive = false;
public filteredSongsControl = new UntypedFormControl();
public constructor(private showSongService: ShowSongService, private showService: ShowService) {}
public constructor(private showSongService: ShowSongService, private showService: ShowService) {
}
public filteredSongs(): Song[] {
if (!this.songs) return [];

View File

@@ -11,4 +11,5 @@ import {ReactiveFormsModule} from '@angular/forms';
exports: [AddSongComponent],
imports: [CommonModule, MatFormFieldModule, MatSelectModule, NgxMatSelectSearchModule, ReactiveFormsModule],
})
export class AddSongModule {}
export class AddSongModule {
}