- 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

@@ -17,7 +17,7 @@ export default function ProductionBoardKanbanCardSettings({
associationSettings,
}) {
const [form] = Form.useForm();
const [visible, setVisible] = useState(false);
const [open, setOpen] = useState(false);
const [loading, setLoading] = useState(false);
const [updateKbSettings] = useMutation(UPDATE_KANBAN_SETTINGS);
@@ -25,7 +25,7 @@ export default function ProductionBoardKanbanCardSettings({
form.setFieldsValue(
associationSettings && associationSettings.kanban_settings
);
}, [form, associationSettings, visible]);
}, [form, associationSettings, open]);
const { t } = useTranslation();
@@ -45,7 +45,7 @@ export default function ProductionBoardKanbanCardSettings({
}),
});
}
setVisible(false);
setOpen(false);
setLoading(false);
};
@@ -173,8 +173,8 @@ export default function ProductionBoardKanbanCardSettings({
</div>
);
return (
<Popover content={overlay} open={visible} placement="topRight">
<Button loading={loading} onClick={() => setVisible(true)}>
<Popover content={overlay} open={open} placement="topRight">
<Button loading={loading} onClick={() => setOpen(true)}>
{t("production.labels.cardsettings")}
</Button>
</Popover>