fix(desktop): busy state and reactivity
This commit is contained in:
parent
13f319b64f
commit
333b8e907b
6 changed files with 33 additions and 29 deletions
|
|
@ -26,6 +26,7 @@ export const { use: useSync, provider: SyncProvider } = createSimpleContext({
|
|||
.slice(0, store.limit)
|
||||
setStore("session", sessions)
|
||||
}),
|
||||
status: () => sdk.client.session.status().then((x) => setStore("session_status", x.data!)),
|
||||
config: () => sdk.client.config.get().then((x) => setStore("config", x.data!)),
|
||||
changes: () => sdk.client.file.status().then((x) => setStore("changes", x.data!)),
|
||||
node: () => sdk.client.file.list({ query: { path: "/" } }).then((x) => setStore("node", x.data!)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue