mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): remove "images can be restored" messages
This commit is contained in:
parent
9edb02d7ef
commit
f465a956a3
@ -373,7 +373,6 @@
|
|||||||
"dropToUpload": "$t(gallery.drop) to Upload",
|
"dropToUpload": "$t(gallery.drop) to Upload",
|
||||||
"deleteImage_one": "Delete Image",
|
"deleteImage_one": "Delete Image",
|
||||||
"deleteImage_other": "Delete {{count}} Images",
|
"deleteImage_other": "Delete {{count}} Images",
|
||||||
"deleteImageBin": "Deleted images will be sent to your operating system's Bin.",
|
|
||||||
"deleteImagePermanent": "Deleted images cannot be restored.",
|
"deleteImagePermanent": "Deleted images cannot be restored.",
|
||||||
"displayBoardSearch": "Display Board Search",
|
"displayBoardSearch": "Display Board Search",
|
||||||
"displaySearch": "Display Search",
|
"displaySearch": "Display Search",
|
||||||
|
@ -69,7 +69,6 @@ export type AppConfig = {
|
|||||||
disabledTabs: InvokeTabName[];
|
disabledTabs: InvokeTabName[];
|
||||||
disabledFeatures: AppFeature[];
|
disabledFeatures: AppFeature[];
|
||||||
disabledSDFeatures: SDFeature[];
|
disabledSDFeatures: SDFeature[];
|
||||||
canRestoreDeletedImagesFromBin: boolean;
|
|
||||||
nodesAllowlist: string[] | undefined;
|
nodesAllowlist: string[] | undefined;
|
||||||
nodesDenylist: string[] | undefined;
|
nodesDenylist: string[] | undefined;
|
||||||
metadataFetchDebounce?: number;
|
metadataFetchDebounce?: number;
|
||||||
|
@ -56,7 +56,6 @@ const DeleteImageModal = () => {
|
|||||||
const dispatch = useAppDispatch();
|
const dispatch = useAppDispatch();
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const shouldConfirmOnDelete = useAppSelector((s) => s.system.shouldConfirmOnDelete);
|
const shouldConfirmOnDelete = useAppSelector((s) => s.system.shouldConfirmOnDelete);
|
||||||
const canRestoreDeletedImagesFromBin = useAppSelector((s) => s.config.canRestoreDeletedImagesFromBin);
|
|
||||||
const isModalOpen = useAppSelector((s) => s.deleteImageModal.isModalOpen);
|
const isModalOpen = useAppSelector((s) => s.deleteImageModal.isModalOpen);
|
||||||
const { imagesToDelete, imagesUsage, imageUsageSummary } = useAppSelector(selectImageUsages);
|
const { imagesToDelete, imagesUsage, imageUsageSummary } = useAppSelector(selectImageUsages);
|
||||||
|
|
||||||
@ -90,7 +89,7 @@ const DeleteImageModal = () => {
|
|||||||
<Flex direction="column" gap={3}>
|
<Flex direction="column" gap={3}>
|
||||||
<ImageUsageMessage imageUsage={imageUsageSummary} />
|
<ImageUsageMessage imageUsage={imageUsageSummary} />
|
||||||
<Divider />
|
<Divider />
|
||||||
<Text>{canRestoreDeletedImagesFromBin ? t('gallery.deleteImageBin') : t('gallery.deleteImagePermanent')}</Text>
|
<Text>{t('gallery.deleteImagePermanent')}</Text>
|
||||||
<Text>{t('common.areYouSure')}</Text>
|
<Text>{t('common.areYouSure')}</Text>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<FormLabel>{t('common.dontAskMeAgain')}</FormLabel>
|
<FormLabel>{t('common.dontAskMeAgain')}</FormLabel>
|
||||||
|
@ -35,7 +35,6 @@ type Props = {
|
|||||||
const DeleteBoardModal = (props: Props) => {
|
const DeleteBoardModal = (props: Props) => {
|
||||||
const { boardToDelete, setBoardToDelete } = props;
|
const { boardToDelete, setBoardToDelete } = props;
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const canRestoreDeletedImagesFromBin = useAppSelector((s) => s.config.canRestoreDeletedImagesFromBin);
|
|
||||||
const { currentData: boardImageNames, isFetching: isFetchingBoardNames } = useListAllImageNamesForBoardQuery(
|
const { currentData: boardImageNames, isFetching: isFetchingBoardNames } = useListAllImageNamesForBoardQuery(
|
||||||
boardToDelete?.board_id ?? skipToken
|
boardToDelete?.board_id ?? skipToken
|
||||||
);
|
);
|
||||||
@ -125,9 +124,7 @@ const DeleteBoardModal = (props: Props) => {
|
|||||||
? t('boards.deletedPrivateBoardsCannotbeRestored')
|
? t('boards.deletedPrivateBoardsCannotbeRestored')
|
||||||
: t('boards.deletedBoardsCannotbeRestored')}
|
: t('boards.deletedBoardsCannotbeRestored')}
|
||||||
</Text>
|
</Text>
|
||||||
<Text>
|
<Text>{t('gallery.deleteImagePermanent')}</Text>
|
||||||
{canRestoreDeletedImagesFromBin ? t('gallery.deleteImageBin') : t('gallery.deleteImagePermanent')}
|
|
||||||
</Text>
|
|
||||||
</Flex>
|
</Flex>
|
||||||
</AlertDialogBody>
|
</AlertDialogBody>
|
||||||
<AlertDialogFooter>
|
<AlertDialogFooter>
|
||||||
|
@ -24,7 +24,6 @@ const initialConfigState: AppConfig = {
|
|||||||
disabledSDFeatures: ['variation', 'symmetry', 'hires', 'perlinNoise', 'noiseThreshold'],
|
disabledSDFeatures: ['variation', 'symmetry', 'hires', 'perlinNoise', 'noiseThreshold'],
|
||||||
nodesAllowlist: undefined,
|
nodesAllowlist: undefined,
|
||||||
nodesDenylist: undefined,
|
nodesDenylist: undefined,
|
||||||
canRestoreDeletedImagesFromBin: true,
|
|
||||||
sd: {
|
sd: {
|
||||||
disabledControlNetModels: [],
|
disabledControlNetModels: [],
|
||||||
disabledControlNetProcessors: [],
|
disabledControlNetProcessors: [],
|
||||||
|
Loading…
Reference in New Issue
Block a user