mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): fix canvas staging area
Missed some of the `imageUpdated` stuff
This commit is contained in:
@ -175,7 +175,11 @@ const IAICanvasStagingAreaToolbar = () => {
|
||||
aria-label={t('unifiedCanvas.saveToGallery')}
|
||||
icon={<FaSave />}
|
||||
onClick={() =>
|
||||
dispatch(stagingAreaImageSaved(currentStagingAreaImage.image))
|
||||
dispatch(
|
||||
stagingAreaImageSaved({
|
||||
imageName: currentStagingAreaImage.imageName,
|
||||
})
|
||||
)
|
||||
}
|
||||
colorScheme="accent"
|
||||
/>
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { createAction } from '@reduxjs/toolkit';
|
||||
import { ImageDTO } from 'services/api/types';
|
||||
|
||||
export const canvasSavedToGallery = createAction('canvas/canvasSavedToGallery');
|
||||
|
||||
@ -13,6 +12,6 @@ export const canvasDownloadedAsImage = createAction(
|
||||
|
||||
export const canvasMerged = createAction('canvas/canvasMerged');
|
||||
|
||||
export const stagingAreaImageSaved = createAction<ImageDTO>(
|
||||
export const stagingAreaImageSaved = createAction<{ imageName: string }>(
|
||||
'canvas/stagingAreaImageSaved'
|
||||
);
|
||||
|
Reference in New Issue
Block a user