This commit is contained in:
_Bastler
2022-01-03 12:40:17 +01:00
parent 86c48ac23c
commit eb6e3f93ba
3 changed files with 27 additions and 5 deletions
@@ -20,6 +20,7 @@ export class JukeboxComponent implements OnInit {
timeout: number = 0;
timer;
searchResult: any;
currentTrack: any;
active: boolean = false;
wait: boolean = false;
forbidden: boolean = false;
@@ -47,6 +48,10 @@ export class JukeboxComponent implements OnInit {
this.forbidden = false;
this.unavailable = false;
this.jukeboxService.check().subscribe((response) => {
if (response) {
this.currentTrack = response;
}
this.active = true;
}, (error) => {
this.active = false;