(ui) add Canvas Alert for invocation progress messages

This commit is contained in:
Mary Hipp
2024-11-06 20:32:47 -05:00
committed by psychedelicious
parent 9bbb5644af
commit bdbdb22b74
4 changed files with 27 additions and 0 deletions

View File

@@ -10,3 +10,4 @@ export const $lastProgressEvent = atom<S['InvocationProgressEvent'] | null>(null
export const $progressImage = computed($lastProgressEvent, (val) => val?.image ?? null);
export const $hasProgressImage = computed($lastProgressEvent, (val) => Boolean(val?.image));
export const $isProgressFromCanvas = computed($lastProgressEvent, (val) => val?.destination === 'canvas');
export const $progressEventMessage = computed($lastProgressEvent, (val) => val?.message);