release/2026-06-05 - Package updates, Esig Fixes, Ant tweak for upgrade
This commit is contained in:
@@ -26,6 +26,7 @@ export function EsignatureModalContainer({ esignatureModal, toggleModalVisible,
|
||||
const { open, context } = esignatureModal;
|
||||
const { token, envelopeId, documentId, jobid } = context;
|
||||
const [distributing, setDistributing] = useState(false);
|
||||
const hasToken = Boolean(token);
|
||||
|
||||
if (!hasDocumensoApiKey(bodyshop)) {
|
||||
return null;
|
||||
@@ -39,6 +40,10 @@ export function EsignatureModalContainer({ esignatureModal, toggleModalVisible,
|
||||
rome: t("jobs.labels.esignature_rome")
|
||||
})}
|
||||
onOk={async () => {
|
||||
if (!hasToken) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
setDistributing(true);
|
||||
await axios.post("/esign/distribute", {
|
||||
@@ -58,6 +63,11 @@ export function EsignatureModalContainer({ esignatureModal, toggleModalVisible,
|
||||
setDistributing(false);
|
||||
}}
|
||||
onCancel={async () => {
|
||||
if (!hasToken) {
|
||||
toggleModalVisible();
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
await axios.post("/esign/delete", {
|
||||
documentId,
|
||||
@@ -73,7 +83,7 @@ export function EsignatureModalContainer({ esignatureModal, toggleModalVisible,
|
||||
});
|
||||
}
|
||||
}}
|
||||
okButtonProps={{ loading: distributing }}
|
||||
okButtonProps={{ loading: distributing, style: hasToken ? undefined : { display: "none" } }}
|
||||
okText={t("esignature.actions.distribute")}
|
||||
destroyOnHidden
|
||||
width="calc(100vw - 32px)"
|
||||
@@ -81,7 +91,7 @@ export function EsignatureModalContainer({ esignatureModal, toggleModalVisible,
|
||||
styles={{ body: { overflow: "hidden", padding: 0 } }}
|
||||
>
|
||||
<div className="esignature-modal-frame">
|
||||
{token ? (
|
||||
{hasToken ? (
|
||||
<EmbedUpdateDocumentV1
|
||||
presignToken={token}
|
||||
host="https://sign.imex.online"
|
||||
|
||||
Reference in New Issue
Block a user