Show queue front icon when shift is pressed (#1157)

* Move shiftDown state to workspaceStateStore

* Queue front state
This commit is contained in:
Chenlei Hu
2024-10-07 19:54:00 -04:00
committed by GitHub
parent 2b26514190
commit 23952d9751
6 changed files with 44 additions and 23 deletions

View File

@@ -7,11 +7,14 @@ import { useSidebarTabStore } from './workspace/sidebarTabStore'
interface WorkspaceState {
spinner: boolean
// Whether the shift key is down globally
shiftDown: boolean
}
export const useWorkspaceStore = defineStore('workspace', {
state: (): WorkspaceState => ({
spinner: false
spinner: false,
shiftDown: false
}),
getters: {
toast(): ToastManager {