From a439d15754f9944d46817f12474591412c4d78bb Mon Sep 17 00:00:00 2001 From: Jonathan Baecker Date: Thu, 28 May 2020 10:15:07 +0200 Subject: [PATCH] show error message on wrong requests --- ffplayout/frontend/layouts/default.vue | 39 ++++++++++++++++++++++++++ ffplayout/frontend/store/index.js | 14 +++++++++ 2 files changed, 53 insertions(+) diff --git a/ffplayout/frontend/layouts/default.vue b/ffplayout/frontend/layouts/default.vue index b9fc9c45..67e11afe 100644 --- a/ffplayout/frontend/layouts/default.vue +++ b/ffplayout/frontend/layouts/default.vue @@ -1,9 +1,37 @@ + + diff --git a/ffplayout/frontend/store/index.js b/ffplayout/frontend/store/index.js index 0f5042b9..f14132da 100644 --- a/ffplayout/frontend/store/index.js +++ b/ffplayout/frontend/store/index.js @@ -1 +1,15 @@ export const strict = false + +export const state = () => ({ + showErrorAlert: false, + ErrorAlertMessage: '' +}) + +export const mutations = { + UPDATE_SHOW_ERROR_ALERT (state, show) { + state.showErrorAlert = show + }, + UPDATE_ERROR_AERT_MESSAGE (state, message) { + state.ErrorAlertMessage = message + } +}