jukebox
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user