Switch between workflows

This commit is contained in:
space-nuko
2023-05-20 20:27:43 -05:00
parent 61d9803e17
commit 1ca069b35f
8 changed files with 78 additions and 42 deletions

View File

@@ -1233,7 +1233,14 @@ function getLayoutByNode(node: LGraphNode): WritableLayoutStateStore | null {
}
export type LayoutStateStores = {
/*
* Layouts associated with opened workflows
*/
all: Record<WorkflowInstID, WritableLayoutStateStore>,
/*
* Increment to force Svelte to re-render the props panel
*/
refreshPropsPanel: number
}
@@ -1249,10 +1256,6 @@ export type WritableLayoutStateStores = Writable<LayoutStateStores> & LayoutStat
const store = writable({
all: {},
/*
* Increment to force Svelte to re-render the props panel
*/
refreshPropsPanel: 0
})