You've already forked AstralRinth
forked from didirus/AstralRinth
Loading bars (#113)
* Loading bars * remove print * remove print * remove class * Fix overlay
This commit is contained in:
13
theseus_gui/src/store/loading.js
Normal file
13
theseus_gui/src/store/loading.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
export const useLoading = defineStore('loadingStore', {
|
||||
state: () => ({ loading: false }),
|
||||
actions: {
|
||||
startLoading() {
|
||||
this.loading = true
|
||||
},
|
||||
stopLoading() {
|
||||
this.loading = false
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user