From f1eda2da7571c6dbf966533ed6934fa17f6ef591 Mon Sep 17 00:00:00 2001 From: SauceyRed Date: Mon, 11 Aug 2025 00:04:18 +0200 Subject: [PATCH] feat: handle setting of default context menu state variable only in app.vue --- components/Guild/MemberEntry.vue | 2 +- components/Message.vue | 2 +- components/UserInterface/ResizableSidebar.vue | 6 +----- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/components/Guild/MemberEntry.vue b/components/Guild/MemberEntry.vue index a5f66fb..0c7afa0 100644 --- a/components/Guild/MemberEntry.vue +++ b/components/Guild/MemberEntry.vue @@ -15,7 +15,7 @@ import type { ContextMenuInterface, GuildMemberResponse } from '~/types/interfac const { getDisplayName } = useProfile() -const contextMenu = useState("contextMenu", () => ({ show: false, pointerX: 0, pointerY: 0, items: [] })); +const contextMenu = useState("contextMenu"); const props = defineProps<{ member: GuildMemberResponse diff --git a/components/Message.vue b/components/Message.vue index bfb6af6..9d33ac0 100644 --- a/components/Message.vue +++ b/components/Message.vue @@ -76,7 +76,7 @@ const route = useRoute(); const props = defineProps(); -const contextMenu = useState("contextMenu", () => ({ show: false, pointerX: 0, pointerY: 0, items: [] })); +const contextMenu = useState("contextMenu"); const messageElement = ref(); diff --git a/components/UserInterface/ResizableSidebar.vue b/components/UserInterface/ResizableSidebar.vue index 79e95bd..e36c8a6 100644 --- a/components/UserInterface/ResizableSidebar.vue +++ b/components/UserInterface/ResizableSidebar.vue @@ -1,5 +1,5 @@