array to string for extensions, fix #102

This commit is contained in:
jb-alvarado 2023-06-11 20:45:03 +02:00
parent b690bcceff
commit bb15a8094e
3 changed files with 363 additions and 1835 deletions

2174
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "ffplayout-frontend",
"version": "0.3.3",
"version": "0.3.4",
"description": "Web GUI for ffplayout",
"author": "Jonathan Baecker",
"private": true,
@ -12,14 +12,14 @@
"postinstall": "nuxt prepare"
},
"dependencies": {
"@nuxt/types": "^2.16.3",
"@nuxt/types": "^2.17.0",
"@pinia/nuxt": "^0.4.11",
"@popperjs/core": "^2.11.8",
"@vueuse/core": "^10.1.2",
"bootstrap": "^5.3.0",
"bootstrap-icons": "^1.10.5",
"cookie-universal-nuxt": "^2.2.2",
"dayjs": "^1.11.7",
"dayjs": "^1.11.8",
"jwt-decode": "^3.1.2",
"lodash": "^4.17.21",
"mpegts.js": "^1.7.3",
@ -36,10 +36,10 @@
"@types/lodash": "^4.14.195",
"@types/splitpanes": "^2.2.1",
"@types/video.js": "^7.3.52",
"eslint": "^8.41.0",
"eslint": "^8.42.0",
"eslint-plugin-nuxt": "^4.0.0",
"nuxt": "3.5.2",
"sass": "^1.62.1",
"sass-loader": "^13.3.1"
"nuxt": "3.5.3",
"sass": "^1.63.3",
"sass-loader": "^13.3.2"
}
}

View File

@ -62,10 +62,6 @@ export const useConfig = defineStore('config', {
this.playlistLength = sec
},
updatePlayoutConfig(config: any) {
this.configPlayout = config
},
setCurrentUser(user: string) {
this.currentUser = user
},
@ -199,7 +195,11 @@ export const useConfig = defineStore('config', {
this.updatePlaylistLength(length)
}
this.updatePlayoutConfig(data)
if (data.storage.extensions) {
data.storage.extensions = data.storage.extensions.join(',')
}
this.configPlayout = data
})
.catch(() => {
indexStore.alertMsg = 'No playout config found!'