- nuke visible from the face of the earth with fire.

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-01-12 17:25:25 -05:00
parent 7d6e61043e
commit ba32a71786
58 changed files with 227 additions and 229 deletions

View File

@@ -35,7 +35,7 @@ export function JobsDocumentsGalleryReassign({
];
}, [galleryImages]);
const client = useApolloClient();
const [visible, setVisible] = useState(false);
const [open, setOpen] = useState(false);
const [loading, setLoading] = useState(false);
// const updateImage = async (i, jobid) => {
@@ -126,7 +126,7 @@ export function JobsDocumentsGalleryReassign({
message: t("documents.successes.updated"),
});
}
setVisible(false);
setOpen(false);
setLoading(false);
};
@@ -151,7 +151,7 @@ export function JobsDocumentsGalleryReassign({
<Button type="primary" onClick={() => form.submit()}>
{t("general.actions.submit")}
</Button>
<Button onClick={() => setVisible(false)}>
<Button onClick={() => setOpen(false)}>
{t("general.actions.cancel")}
</Button>
</Space>
@@ -159,10 +159,10 @@ export function JobsDocumentsGalleryReassign({
);
return (
<Popover content={popContent} open={visible}>
<Popover content={popContent} open={open}>
<Button
disabled={selectedImages.length < 1}
onClick={() => setVisible(true)}
onClick={() => setOpen(true)}
loading={loading}
>
{t("documents.actions.reassign")}