get channel name from config
This commit is contained in:
parent
59dff30231
commit
21ca4b7d11
@ -460,7 +460,7 @@ export default {
|
||||
|
||||
await this.$axios.post(
|
||||
'api/player/playlist/',
|
||||
{ data: { channel: this.$store.state.playlist.playlistChannel, date: this.listDate, program: saveList } }
|
||||
{ data: { channel: this.$store.state.config.configGui.channel, date: this.listDate, program: saveList } }
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,6 @@
|
||||
export const state = () => ({
|
||||
playlist: null,
|
||||
playlistToday: [],
|
||||
playlistChannel: 'Channel 1',
|
||||
progressValue: 0,
|
||||
currentClip: 'No clips is playing',
|
||||
currentClipIndex: null,
|
||||
@ -20,9 +19,6 @@ export const mutations = {
|
||||
UPDATE_TODAYS_PLAYLIST (state, list) {
|
||||
state.playlistToday = list
|
||||
},
|
||||
UPDATE_PLAYLIST_CHANNEL (state, channel) {
|
||||
state.playlistChannel = channel
|
||||
},
|
||||
SET_PROGRESS_VALUE (state, value) {
|
||||
state.progressValue = value
|
||||
},
|
||||
@ -57,7 +53,6 @@ export const actions = {
|
||||
const response = await this.$axios.get(`api/player/playlist/?date=${date}`)
|
||||
|
||||
if (response.data && response.data.program) {
|
||||
commit('UPDATE_PLAYLIST_CHANNEL', response.data.channel)
|
||||
commit('UPDATE_PLAYLIST', this.$processPlaylist(dayStart, response.data.program))
|
||||
|
||||
if (date === this.$dayjs().format('YYYY-MM-DD')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user