- 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

@@ -32,7 +32,7 @@ export function JobsDocumentsLocalGalleryReassign({
const { t } = useTranslation();
const [form] = Form.useForm();
const [visible, setVisible] = useState(false);
const [open, setOpen] = useState(false);
const [loading, setLoading] = useState(false);
const handleFinish = async ({ jobid: newJobid }) => {
@@ -50,7 +50,7 @@ export function JobsDocumentsLocalGalleryReassign({
);
getJobMedia(jobid);
setVisible(false);
setOpen(false);
setLoading(false);
};
@@ -75,7 +75,7 @@ export function JobsDocumentsLocalGalleryReassign({
<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>
@@ -83,10 +83,10 @@ export function JobsDocumentsLocalGalleryReassign({
);
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")}