From 38b1d9d9e3cf3bae5d4a7acedd7c6f7a1ea2c75a Mon Sep 17 00:00:00 2001 From: Reza Rahemtola Date: Fri, 31 May 2024 21:34:49 +0200 Subject: [PATCH] fix: Remove useless store and actions --- src/components/PersonaDialog.vue | 2 +- src/components/PersonaDropDown.vue | 18 ++++++++-------- src/pages/Chat.vue | 2 +- src/pages/PointsInfo.vue | 34 ++++++++++++++---------------- src/stores/counter-store.js | 15 ------------- src/stores/personas-store.js | 6 ------ 6 files changed, 27 insertions(+), 50 deletions(-) delete mode 100644 src/stores/counter-store.js diff --git a/src/components/PersonaDialog.vue b/src/components/PersonaDialog.vue index 1bfb0cc..12e8b35 100644 --- a/src/components/PersonaDialog.vue +++ b/src/components/PersonaDialog.vue @@ -62,7 +62,7 @@ export default defineComponent({ const usernameInputRef = ref('user'); function updatePersona() { - personasStore.setPersona(persona); + personasStore.persona = persona; } return { diff --git a/src/components/PersonaDropDown.vue b/src/components/PersonaDropDown.vue index a52c695..8aad70a 100644 --- a/src/components/PersonaDropDown.vue +++ b/src/components/PersonaDropDown.vue @@ -1,24 +1,24 @@