From 6f4980dfb52ecaf1d8fb570fde6a228ae1d9fb03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Sat, 22 Feb 2020 07:28:13 +0100 Subject: [PATCH] fixed ##180 --- src/components/baruser/CreditLists.vue | 4 ++-- src/store/modules/barUsers.js | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/baruser/CreditLists.vue b/src/components/baruser/CreditLists.vue index 90b99ac..4e78e2a 100644 --- a/src/components/baruser/CreditLists.vue +++ b/src/components/baruser/CreditLists.vue @@ -305,8 +305,8 @@ export default { menu(newValue) { if (!newValue) this.deactivate() }, - menu_from_store(newValue) { - if (newValue) this.menu = this.menu_from_store + menu_from_store() { + this.menu = this.menu_from_store } } } diff --git a/src/store/modules/barUsers.js b/src/store/modules/barUsers.js index ba72e29..8fe6cfc 100644 --- a/src/store/modules/barUsers.js +++ b/src/store/modules/barUsers.js @@ -106,7 +106,9 @@ const mutations = { console.log(state.message) }, updateMessage: (state, data) => { - var message = state.message.find(msg => {return msg.date - data.date === 0 ? true : false}) + var message = state.message.find(msg => { + return msg.date - data.date === 0 ? true : false + }) if (message) { message.storno = true }