Relist the dashboard stations every 30 seconds.

This commit is contained in:
Buster "Silver Eagle" Neece 2021-01-11 20:57:14 -06:00
parent 8f4ba82c58
commit 4a531b598d
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
1 changed files with 6 additions and 0 deletions

View File

@ -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);
}
}
};