Store spinner state in workspace state store (#256)

This commit is contained in:
Chenlei Hu
2024-07-29 10:54:22 -04:00
committed by GitHub
parent 66b690e5c8
commit 0aa7d0b99a
3 changed files with 14 additions and 7 deletions

View File

@@ -2,12 +2,14 @@ import { SidebarTabExtension } from '@/types/extensionTypes'
import { defineStore } from 'pinia'
interface WorkspaceState {
spinner: boolean
activeSidebarTab: string | null
sidebarTabs: SidebarTabExtension[]
}
export const useWorkspaceStore = defineStore('workspace', {
state: (): WorkspaceState => ({
spinner: false,
activeSidebarTab: null,
sidebarTabs: []
}),