mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): refactor image deletion
Add `DeleteImageContext`: - provide a single function to delete an image - opens the modal or immediately deletes, if confirm is off
This commit is contained in:
@ -14,6 +14,7 @@ import { useAppToaster } from 'app/components/Toaster';
|
||||
import IAIDndImage from 'common/components/IAIDndImage';
|
||||
import { ImageDTO } from 'services/api';
|
||||
import { IAIImageFallback } from 'common/components/IAIImageFallback';
|
||||
import { useGetIsImageInUse } from 'common/hooks/useGetIsImageInUse';
|
||||
|
||||
const selector = createSelector(
|
||||
[generationSelector],
|
||||
|
Reference in New Issue
Block a user