current track on wait
This commit is contained in:
@@ -62,6 +62,11 @@ export class JukeboxComponent implements OnInit {
|
||||
} else if (error.status == 402) {
|
||||
this.wait = true;
|
||||
this.timeout = 60 - error.error;
|
||||
|
||||
this.jukeboxService.current().subscribe((response) => {
|
||||
this.currentTrack = response;
|
||||
});
|
||||
|
||||
this.timer = setInterval(() => {
|
||||
this.timeout--;
|
||||
if (this.timeout == 0) {
|
||||
|
||||
Reference in New Issue
Block a user