From ed5b371175fbca4a0b14b304c58b98fcf1541452 Mon Sep 17 00:00:00 2001 From: Benjamin Lu Date: Wed, 2 Jul 2025 17:26:41 -0400 Subject: [PATCH] feat: Add rightSidebarTabStore for managing right sidebar visibility --- src/stores/workspace/rightSidebarTabStore.ts | 25 ++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/stores/workspace/rightSidebarTabStore.ts diff --git a/src/stores/workspace/rightSidebarTabStore.ts b/src/stores/workspace/rightSidebarTabStore.ts new file mode 100644 index 0000000000..f843585f6e --- /dev/null +++ b/src/stores/workspace/rightSidebarTabStore.ts @@ -0,0 +1,25 @@ +import { defineStore } from 'pinia' +import { ref } from 'vue' + +export const useRightSidebarTabStore = defineStore('rightSidebarTab', () => { + const isVisible = ref(false) + + const toggleVisibility = () => { + isVisible.value = !isVisible.value + } + + const show = () => { + isVisible.value = true + } + + const hide = () => { + isVisible.value = false + } + + return { + isVisible, + toggleVisibility, + show, + hide + } +})