mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
add boardToAddTo state so that result can be added to board when generation is complete
This commit is contained in:
committed by
psychedelicious
parent
4defb92105
commit
7a2d3f628a
@ -53,14 +53,14 @@ export const appSocketDisconnected = createAction<BaseSocketPayload>(
|
||||
* Do not use. Only for use in middleware.
|
||||
*/
|
||||
export const socketSubscribed = createAction<
|
||||
BaseSocketPayload & { sessionId: string }
|
||||
BaseSocketPayload & { sessionId: string; boardId: string | undefined }
|
||||
>('socket/socketSubscribed');
|
||||
|
||||
/**
|
||||
* App-level Socket.IO Subscribed
|
||||
*/
|
||||
export const appSocketSubscribed = createAction<
|
||||
BaseSocketPayload & { sessionId: string }
|
||||
BaseSocketPayload & { sessionId: string; boardId: string | undefined }
|
||||
>('socket/appSocketSubscribed');
|
||||
|
||||
/**
|
||||
|
@ -85,6 +85,7 @@ export const socketMiddleware = () => {
|
||||
socketSubscribed({
|
||||
sessionId: sessionId,
|
||||
timestamp: getTimestamp(),
|
||||
boardId: getState().boards.selectedBoardId,
|
||||
})
|
||||
);
|
||||
}
|
||||
|
@ -44,6 +44,7 @@ export const setEventListeners = (arg: SetEventListenersArg) => {
|
||||
socketSubscribed({
|
||||
sessionId,
|
||||
timestamp: getTimestamp(),
|
||||
boardId: getState().boards.selectedBoardId,
|
||||
})
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user