diff --git a/apps/OpenSign/public/locales/en/translation.json b/apps/OpenSign/public/locales/en/translation.json index af6e2fbed..f6df36dd7 100644 --- a/apps/OpenSign/public/locales/en/translation.json +++ b/apps/OpenSign/public/locales/en/translation.json @@ -627,6 +627,9 @@ "regenerate-test-token":"Regenerate Test Token", "help-test-token":"This token can be used to test the APIs at the https://sandbox.opensignlabs.com/api/v1 endpoint, allowing you to conduct unlimited document signatures. Please note that the sandbox API will sign your documents with self-signed certificates, which may not be recognized as valid by Adobe. Once you’ve completed your testing, you can upgrade to one of our paid plans to generate a production token.", "help-api-token":"This token can be used to access the production APIs at the {{origin}}/api/v1 endpoint. It can only be generated on one of our paid plans.", + "reason":"Reason", + "decline-by":"Declined/revoked by", + "document-declined": "Document declined", "Add-Webhook":"Add Webhook", "quotamailselfsign": "You've reached your limit of 20 emails for this month. Upgrade now to continue sending emails directly.", "quotamail": "You've reached your limit of 20 signature request emails for this month. Upgrade now to continue sending emails directly.", diff --git a/apps/OpenSign/public/locales/fr/translation.json b/apps/OpenSign/public/locales/fr/translation.json index 6956bcff1..e52882f39 100644 --- a/apps/OpenSign/public/locales/fr/translation.json +++ b/apps/OpenSign/public/locales/fr/translation.json @@ -627,6 +627,9 @@ "regenerate-test-token":"Régénérer le jeton de test", "help-test-token":"Ce jeton peut être utilisé pour tester les API au niveau du point de terminaison https://sandbox.opensignlabs.com/api/v1, vous permettant ainsi d'effectuer un nombre illimité de signatures de documents. Veuillez noter que l'API sandbox signera vos documents avec des certificats auto-signés, qui peuvent ne pas être reconnus comme valides par Adobe. Une fois vos tests terminés, vous pouvez passer à l’un de nos forfaits payants pour générer un jeton de production.", "help-api-token":"Ce jeton peut être utilisé pour accéder aux API de production au point de terminaison {{origin}}/api/v1. Il ne peut être généré que sur l'un de nos forfaits payants.", + "reason" :"Raison", + "decline-by" :"Refusé/révoqué par", + "document-declined":"document refusé", "Add-Webhook":"Ajouter Webhook", "quotamailselfsign": "Vous avez atteint votre limite de 20 e-mails pour ce mois. Mettez à niveau maintenant pour continuer à envoyer des e-mails directement.", "quotamail": "Vous avez atteint votre limite de 20 e-mails de demande de signature pour ce mois. Mettez à niveau maintenant pour continuer à envoyer des e-mails directement.", diff --git a/apps/OpenSign/src/constant/Utils.js b/apps/OpenSign/src/constant/Utils.js index 08b92c975..71f7aa69d 100644 --- a/apps/OpenSign/src/constant/Utils.js +++ b/apps/OpenSign/src/constant/Utils.js @@ -1411,7 +1411,7 @@ export const multiSignEmbed = async ( }; const color = position?.options?.fontColor; const updateColorInRgb = getWidgetsFontColor(color); - const fontSize = parseInt(position?.options?.fontSize); + const fontSize = parseInt(position?.options?.fontSize || 13); const widgetTypeExist = [ textWidget, textInputWidget, diff --git a/apps/OpenSign/src/pages/PdfRequestFiles.js b/apps/OpenSign/src/pages/PdfRequestFiles.js index 41227066e..833ce8616 100644 --- a/apps/OpenSign/src/pages/PdfRequestFiles.js +++ b/apps/OpenSign/src/pages/PdfRequestFiles.js @@ -1216,7 +1216,15 @@ function PdfRequestFiles(props) { ); const jsonSender = JSON.parse(senderUser); setIsDecline({ isDeclined: false }); - const data = { IsDeclined: true, DeclineReason: reason }; + const data = { + IsDeclined: true, + DeclineReason: reason, + DeclineBy: { + __type: "Pointer", + className: "_User", + objectId: jsonSender?.objectId + } + }; setIsUiLoading(true); await axios @@ -1277,6 +1285,8 @@ function PdfRequestFiles(props) { }) .catch((err) => { console.log("error updating field is decline ", err); + setIsUiLoading(false); + alert(t("something-went-wrong-mssg")); }); }; //function to add default signature for all requested placeholder of sign @@ -1575,6 +1585,23 @@ function PdfRequestFiles(props) { const name = pdfDetails?.[0]?.Name; await fetchUrl(url, name); }; + const handleDeclineMssg = () => { + const user = pdfDetails[0]?.DeclineBy?.email; + return ( +