addressed pr feedback

This commit is contained in:
Jennifer Player 2024-04-05 13:30:31 -04:00 committed by psychedelicious
parent fdd0e57976
commit adc30045a6
3 changed files with 8 additions and 8 deletions

View File

@ -1041,10 +1041,10 @@
"metadataLoadFailed": "Failed to load metadata", "metadataLoadFailed": "Failed to load metadata",
"modelAddedSimple": "Model Added to Queue", "modelAddedSimple": "Model Added to Queue",
"modelImportCanceled": "Model Import Canceled", "modelImportCanceled": "Model Import Canceled",
"parameters": "Parameters",
"parameterNotSet": "{{parameter}} not set", "parameterNotSet": "{{parameter}} not set",
"parameterSet": "{{parameter}} set", "parameterSet": "{{parameter}} set",
"parametersNotSet": "Parameters Not Set", "parametersNotSet": "Parameters Not Set",
"parametersSet": "Parameters",
"problemCopyingCanvas": "Problem Copying Canvas", "problemCopyingCanvas": "Problem Copying Canvas",
"problemCopyingCanvasDesc": "Unable to export base layer", "problemCopyingCanvasDesc": "Unable to export base layer",
"problemCopyingImage": "Unable to Copy Image", "problemCopyingImage": "Unable to Copy Image",

View File

@ -410,6 +410,6 @@ export const parseAndRecallAllMetadata = async (metadata: unknown, skip: (keyof
}) })
); );
if (results.some((result) => result.status === 'fulfilled')) { if (results.some((result) => result.status === 'fulfilled')) {
parameterSetToast(t('toast.parametersSet')); parameterSetToast(t('toast.parameters'));
} }
}; };

View File

@ -63,7 +63,7 @@ import {
setRefinerStart, setRefinerStart,
setRefinerSteps, setRefinerSteps,
} from 'features/sdxl/store/sdxlSlice'; } from 'features/sdxl/store/sdxlSlice';
import type { ImageDTO } from 'services/api/types'; import { imagesApi } from 'services/api/endpoints/images';
const recallPositivePrompt: MetadataRecallFunc<ParameterPositivePrompt> = (positivePrompt) => { const recallPositivePrompt: MetadataRecallFunc<ParameterPositivePrompt> = (positivePrompt) => {
getStore().dispatch(setPositivePrompt(positivePrompt)); getStore().dispatch(setPositivePrompt(positivePrompt));
@ -97,11 +97,11 @@ const recallScheduler: MetadataRecallFunc<ParameterScheduler> = (scheduler) => {
getStore().dispatch(setScheduler(scheduler)); getStore().dispatch(setScheduler(scheduler));
}; };
const recallInitialImage: MetadataRecallFunc<ParameterInitialImage> = (initialImage) => { const recallInitialImage: MetadataRecallFunc<ParameterInitialImage> = async (initialImage) => {
const image = { const imageDTORequest = getStore().dispatch(imagesApi.endpoints.getImageDTO.initiate(initialImage));
image_name: initialImage, const imageDTO = await imageDTORequest.unwrap();
}; imageDTORequest.unsubscribe();
getStore().dispatch(initialImageChanged(image as ImageDTO)); getStore().dispatch(initialImageChanged(imageDTO));
}; };
const recallWidth: MetadataRecallFunc<ParameterWidth> = (width) => { const recallWidth: MetadataRecallFunc<ParameterWidth> = (width) => {