Adding activity dialog now auto selects all available contracts use has option to remove them, adding documents on archived contracts is not limited anymore.

This commit is contained in:
2026-05-10 16:30:45 +02:00
parent fd81e8ce2d
commit b6bfa17980
3 changed files with 10 additions and 10 deletions
@@ -54,7 +54,7 @@ const form = useInertiaForm({
props.actions[0].decisions.length > 0
? props.actions[0].decisions[0].id
: null,
contract_uuids: props.contractUuid ? [props.contractUuid] : [],
contract_uuids: props.contractUuid ? [props.contractUuid] : (props.contracts || []).map((c) => c.uuid),
send_auto_mail: true,
attach_documents: false,
attachment_document_ids: [],
@@ -98,7 +98,7 @@ watch(
watch(
() => props.contractUuid,
(cu) => {
form.contract_uuids = cu ? [cu] : [];
form.contract_uuids = cu ? [cu] : (props.contracts || []).map((c) => c.uuid);
}
);
@@ -106,7 +106,7 @@ watch(
() => props.show,
(visible) => {
if (visible) {
form.contract_uuids = props.contractUuid ? [props.contractUuid] : [];
form.contract_uuids = props.contractUuid ? [props.contractUuid] : (props.contracts || []).map((c) => c.uuid);
}
}
);