Relist the dashboard stations every 30 seconds.
This commit is contained in:
parent
8f4ba82c58
commit
4a531b598d
|
@ -219,6 +219,8 @@ export default {
|
|||
}).catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
|
||||
this.stationsTimeout = setTimeout(this.updateNowPlaying, 30000);
|
||||
},
|
||||
methods: {
|
||||
toggleCharts () {
|
||||
|
@ -230,6 +232,10 @@ export default {
|
|||
},
|
||||
playAudio (url) {
|
||||
this.$eventHub.$emit('player_toggle', url);
|
||||
},
|
||||
updateNowPlaying () {
|
||||
this.$refs.datatable.refresh();
|
||||
this.stationsTimeout = setTimeout(this.updateNowPlaying, 30000);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue