feat: initial commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// Ported from legacy henza_pwa/src/store/loadingStore.ts — a single global
|
||||
// loading flag, converted from the hand-rolled ref-class to Pinia.
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
export const useLoadingStore = defineStore('loading', {
|
||||
state: () => ({
|
||||
loading: false,
|
||||
}),
|
||||
actions: {
|
||||
setLoading(loading: boolean) {
|
||||
this.loading = loading
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user