feat(ui): store workflow in generation tab images

This commit is contained in:
psychedelicious 2024-05-17 13:30:51 +10:00
parent 5d60c3c8e1
commit 822f1e1f06

View File

@ -4,6 +4,7 @@ import { isImageViewerOpenChanged } from 'features/gallery/store/gallerySlice';
import { prepareLinearUIBatch } from 'features/nodes/util/graph/buildLinearBatchConfig';
import { buildGenerationTabGraph } from 'features/nodes/util/graph/generation/buildGenerationTabGraph';
import { buildGenerationTabSDXLGraph } from 'features/nodes/util/graph/generation/buildGenerationTabSDXLGraph';
import { graphToWorkflow } from 'features/nodes/util/workflow/graphToWorkflow';
import { queueApi } from 'services/api/endpoints/queue';
export const addEnqueueRequestedLinear = (startAppListening: AppStartListening) => {
@ -25,6 +26,8 @@ export const addEnqueueRequestedLinear = (startAppListening: AppStartListening)
}
const batchConfig = prepareLinearUIBatch(state, graph, prepend);
const workflow = graphToWorkflow(graph);
batchConfig.batch.workflow = workflow;
const req = dispatch(
queueApi.endpoints.enqueueBatch.initiate(batchConfig, {