mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-02 19:49:58 +00:00
Store spinner state in workspace state store (#256)
This commit is contained in:
@@ -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: []
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user