|
|
@ -71,6 +71,12 @@ export function useGlobalState(): State { |
|
|
|
/** global loading state */ |
|
|
|
/** global loading state */ |
|
|
|
const isLoading = ref(false) |
|
|
|
const isLoading = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** currently running requests */ |
|
|
|
|
|
|
|
const runningRequests = ref<number[]>([]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** global error */ |
|
|
|
|
|
|
|
const error = ref() |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
...toRefs(storage.value), |
|
|
|
...toRefs(storage.value), |
|
|
|
token, |
|
|
|
token, |
|
|
@ -78,5 +84,7 @@ export function useGlobalState(): State { |
|
|
|
sidebarOpen, |
|
|
|
sidebarOpen, |
|
|
|
timestamp, |
|
|
|
timestamp, |
|
|
|
isLoading, |
|
|
|
isLoading, |
|
|
|
|
|
|
|
runningRequests, |
|
|
|
|
|
|
|
error, |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|