load config on channel save

This commit is contained in:
jb-alvarado 2024-08-22 17:22:20 +02:00
parent e183320e13
commit 4d38a74306
4 changed files with 7 additions and 5 deletions

View File

@ -129,6 +129,7 @@ async function onSubmitChannel() {
if (update.status) {
indexStore.msgAlert('success', t('config.updateChannelSuccess'), 2)
await configStore.getPlayoutConfig()
} else {
indexStore.msgAlert('error', t('config.updateChannelFailed'), 2)
}

View File

@ -97,9 +97,7 @@ defineProps({
})
onMounted(() => {
if (!mediaStore.folderTree.parent) {
mediaStore.getTree('')
}
})
watch([id], () => {

View File

@ -66,8 +66,8 @@ const severityLevels: { [key: string]: number } = {
ERROR: 4,
}
onMounted(() => {
getLog()
onMounted(async () => {
await getLog()
})
watch([listDate, id], () => {

View File

@ -84,6 +84,9 @@ export const useConfig = defineStore('config', {
extra_extensions: '',
name: 'Channel 1',
preview_url: '',
hls_path: '',
playlist_path: '',
storage_path: '',
uts_offset: 0,
},
]