Skip to content

Commit f465a95

Browse files
feat(ui): remove "images can be restored" messages
1 parent 9edb02d commit f465a95

File tree

5 files changed

+2
-9
lines changed

5 files changed

+2
-9
lines changed

invokeai/frontend/web/public/locales/en.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,6 @@
373373
"dropToUpload": "$t(gallery.drop) to Upload",
374374
"deleteImage_one": "Delete Image",
375375
"deleteImage_other": "Delete {{count}} Images",
376-
"deleteImageBin": "Deleted images will be sent to your operating system's Bin.",
377376
"deleteImagePermanent": "Deleted images cannot be restored.",
378377
"displayBoardSearch": "Display Board Search",
379378
"displaySearch": "Display Search",

invokeai/frontend/web/src/app/types/invokeai.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ export type AppConfig = {
6969
disabledTabs: InvokeTabName[];
7070
disabledFeatures: AppFeature[];
7171
disabledSDFeatures: SDFeature[];
72-
canRestoreDeletedImagesFromBin: boolean;
7372
nodesAllowlist: string[] | undefined;
7473
nodesDenylist: string[] | undefined;
7574
metadataFetchDebounce?: number;

invokeai/frontend/web/src/features/deleteImageModal/components/DeleteImageModal.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ const DeleteImageModal = () => {
5656
const dispatch = useAppDispatch();
5757
const { t } = useTranslation();
5858
const shouldConfirmOnDelete = useAppSelector((s) => s.system.shouldConfirmOnDelete);
59-
const canRestoreDeletedImagesFromBin = useAppSelector((s) => s.config.canRestoreDeletedImagesFromBin);
6059
const isModalOpen = useAppSelector((s) => s.deleteImageModal.isModalOpen);
6160
const { imagesToDelete, imagesUsage, imageUsageSummary } = useAppSelector(selectImageUsages);
6261

@@ -90,7 +89,7 @@ const DeleteImageModal = () => {
9089
<Flex direction="column" gap={3}>
9190
<ImageUsageMessage imageUsage={imageUsageSummary} />
9291
<Divider />
93-
<Text>{canRestoreDeletedImagesFromBin ? t('gallery.deleteImageBin') : t('gallery.deleteImagePermanent')}</Text>
92+
<Text>{t('gallery.deleteImagePermanent')}</Text>
9493
<Text>{t('common.areYouSure')}</Text>
9594
<FormControl>
9695
<FormLabel>{t('common.dontAskMeAgain')}</FormLabel>

invokeai/frontend/web/src/features/gallery/components/Boards/DeleteBoardModal.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ type Props = {
3535
const DeleteBoardModal = (props: Props) => {
3636
const { boardToDelete, setBoardToDelete } = props;
3737
const { t } = useTranslation();
38-
const canRestoreDeletedImagesFromBin = useAppSelector((s) => s.config.canRestoreDeletedImagesFromBin);
3938
const { currentData: boardImageNames, isFetching: isFetchingBoardNames } = useListAllImageNamesForBoardQuery(
4039
boardToDelete?.board_id ?? skipToken
4140
);
@@ -125,9 +124,7 @@ const DeleteBoardModal = (props: Props) => {
125124
? t('boards.deletedPrivateBoardsCannotbeRestored')
126125
: t('boards.deletedBoardsCannotbeRestored')}
127126
</Text>
128-
<Text>
129-
{canRestoreDeletedImagesFromBin ? t('gallery.deleteImageBin') : t('gallery.deleteImagePermanent')}
130-
</Text>
127+
<Text>{t('gallery.deleteImagePermanent')}</Text>
131128
</Flex>
132129
</AlertDialogBody>
133130
<AlertDialogFooter>

invokeai/frontend/web/src/features/system/store/configSlice.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const initialConfigState: AppConfig = {
2424
disabledSDFeatures: ['variation', 'symmetry', 'hires', 'perlinNoise', 'noiseThreshold'],
2525
nodesAllowlist: undefined,
2626
nodesDenylist: undefined,
27-
canRestoreDeletedImagesFromBin: true,
2827
sd: {
2928
disabledControlNetModels: [],
3029
disabledControlNetProcessors: [],

0 commit comments

Comments
 (0)