From 32feeefc49afe4efc26ea25d558bc70db2158b16 Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Mon, 29 Mar 2021 10:10:39 +0200 Subject: [PATCH] show error, when config is not loaded --- store/config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/store/config.js b/store/config.js index 43f0efb1..cb48df49 100644 --- a/store/config.js +++ b/store/config.js @@ -139,7 +139,7 @@ export const actions = { return response }, - async getPlayoutConfig ({ commit, state }) { + async getPlayoutConfig ({ commit, state, rootState }) { const path = state.configGui[state.configID].playout_config const response = await this.$axios.get(`api/player/config/?configPlayout&path=${path}`) @@ -153,6 +153,9 @@ export const actions = { } commit('UPDATE_PLAYLOUT_CONFIG', response.data) + } else { + rootState.showErrorAlert = true + rootState.ErrorAlertMessage = 'No playout config found!' } },