mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-14 05:04:56 -05:00
add credits to queue item status changed (#7993)
* display credit column in queue list if shouldShowCredits is true * add credits when queue item status changes * chore(ui): typegen --------- Co-authored-by: Mary Hipp <maryhipp@Marys-MacBook-Air.local> Co-authored-by: psychedelicious <4822129+psychedelicious@users.noreply.github.com>
This commit is contained in:
@@ -17209,6 +17209,12 @@ export type components = {
|
||||
* @description The ID of the session (aka graph execution state)
|
||||
*/
|
||||
session_id: string;
|
||||
/**
|
||||
* Credits
|
||||
* @description The total credits used for this queue item
|
||||
* @default null
|
||||
*/
|
||||
credits: number | null;
|
||||
};
|
||||
/**
|
||||
* QueueItemsRetriedEvent
|
||||
|
||||
@@ -337,6 +337,7 @@ export const setEventListeners = ({ socket, store, setIsConnected }: SetEventLis
|
||||
error_message,
|
||||
error_traceback,
|
||||
destination,
|
||||
credits,
|
||||
} = data;
|
||||
|
||||
log.debug({ data }, `Queue item ${item_id} status updated: ${status}`);
|
||||
@@ -354,6 +355,7 @@ export const setEventListeners = ({ socket, store, setIsConnected }: SetEventLis
|
||||
error_type,
|
||||
error_message,
|
||||
error_traceback,
|
||||
credits,
|
||||
},
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user