mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): rough out save staging image
This commit is contained in:
parent
cb19c1c370
commit
03baebced6
@ -51,6 +51,8 @@ export const StagingAreaToolbarContent = memo(({ stagingArea }: Props) => {
|
|||||||
return images[stagingArea.selectedImageIndex] ?? null;
|
return images[stagingArea.selectedImageIndex] ?? null;
|
||||||
}, [images, stagingArea.selectedImageIndex]);
|
}, [images, stagingArea.selectedImageIndex]);
|
||||||
|
|
||||||
|
// const [changeIsImageIntermediate] = useChangeImageIsIntermediateMutation();
|
||||||
|
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
const onPrev = useCallback(() => {
|
const onPrev = useCallback(() => {
|
||||||
@ -90,7 +92,18 @@ export const StagingAreaToolbarContent = memo(({ stagingArea }: Props) => {
|
|||||||
$shouldShowStagedImage.set(!shouldShowStagedImage);
|
$shouldShowStagedImage.set(!shouldShowStagedImage);
|
||||||
}, [shouldShowStagedImage]);
|
}, [shouldShowStagedImage]);
|
||||||
|
|
||||||
const onSaveStagingImage = useCallback(() => {}, []);
|
const onSaveStagingImage = useCallback(
|
||||||
|
() => {
|
||||||
|
// if (!imageDTO) {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// changeIsImageIntermediate({ imageDTO, is_intermediate: false });
|
||||||
|
},
|
||||||
|
[
|
||||||
|
// changeIsImageIntermediate,
|
||||||
|
// imageDTO
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
useHotkeys(['left'], onPrev, {
|
useHotkeys(['left'], onPrev, {
|
||||||
preventDefault: true,
|
preventDefault: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user