app: use session_working helper to simplify loading states (#27212)
This commit is contained in:
parent
b43147440c
commit
2f4dce789f
8 changed files with 10 additions and 26 deletions
|
|
@ -208,6 +208,9 @@ export function createChildStoreManager(input: {
|
|||
session: [],
|
||||
sessionTotal: 0,
|
||||
session_status: {},
|
||||
session_working(id: string) {
|
||||
return this.session_status[id].type !== "idle"
|
||||
},
|
||||
session_diff: {},
|
||||
todo: {},
|
||||
permission: {},
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ export type State = {
|
|||
session_status: {
|
||||
[sessionID: string]: SessionStatus
|
||||
}
|
||||
session_working(id: string): boolean
|
||||
session_diff: {
|
||||
[sessionID: string]: SnapshotFileDiff[]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue