Add image-count sorting, and image deletion on gallery deletion (#853)

This commit is contained in:
InfiniteTF
2020-10-16 01:35:50 +02:00
committed by GitHub
parent d0f1ad3c24
commit 73eb5c7a1f
5 changed files with 42 additions and 5 deletions

View File

@@ -76,11 +76,13 @@ export const DeleteGalleriesDialog: React.FC<IDeleteGalleryDialogProps> = (
</p>
<Form>
<Form.Check
id="delete-file"
checked={deleteFile}
label="Delete zip file (if applicable)"
label="Delete zip file and any images not attached to any other gallery."
onChange={() => setDeleteFile(!deleteFile)}
/>
<Form.Check
id="delete-generated"
checked={deleteGenerated}
label="Delete generated supporting files"
onChange={() => setDeleteGenerated(!deleteGenerated)}

View File

@@ -56,6 +56,7 @@ const ModalComponent: React.FC<IModal> = ({
disabled={isRunning || disabled}
variant={accept?.variant ?? "primary"}
onClick={accept?.onClick}
className="ml-2"
>
{isRunning ? (
<Spinner animation="border" role="status" size="sm" />