From b8fb626591627d098cbb6895b2c11a52a3807ee7 Mon Sep 17 00:00:00 2001 From: prafull-opensignlabs Date: Thu, 31 Oct 2024 12:58:43 +0530 Subject: [PATCH] fix: drattemplate ui changes, signers not visible in list, alert message --- .../src/components/pdf/EditTemplate.js | 14 +++---------- apps/OpenSign/src/components/pdf/PdfHeader.js | 20 +++++++++++------- .../components/shared/fields/SelectSigners.js | 8 +++---- apps/OpenSign/src/constant/Utils.js | 4 ++-- apps/OpenSign/src/pages/DraftTemplate.js | 6 ++++-- apps/OpenSignServer/Utils.js | 21 +++++++++++++++---- .../cloud/parsefunction/getSigners.js | 3 +-- 7 files changed, 43 insertions(+), 33 deletions(-) diff --git a/apps/OpenSign/src/components/pdf/EditTemplate.js b/apps/OpenSign/src/components/pdf/EditTemplate.js index 735ac2a9e..9d06057a5 100644 --- a/apps/OpenSign/src/components/pdf/EditTemplate.js +++ b/apps/OpenSign/src/components/pdf/EditTemplate.js @@ -5,11 +5,8 @@ import { isEnableSubscription } from "../../constant/const"; import { useTranslation } from "react-i18next"; import { Tooltip } from "react-tooltip"; -// import SelectFolder from "../../premitives/SelectFolder"; - -const EditTemplate = ({ template, onSuccess }) => { +const EditTemplate = ({ template, onSuccess, jwttoken }) => { const { t } = useTranslation(); - // const [folder, setFolder] = useState({ ObjectId: "", Name: "" }); const [formData, setFormData] = useState({ Name: template?.Name || "", Note: template?.Note || "", @@ -29,17 +26,13 @@ const EditTemplate = ({ template, onSuccess }) => { }, []); const fetchSubscription = async () => { if (isEnableSubscription) { - const subscribe = await checkIsSubscribed(); + const subscribe = await checkIsSubscribed(jwttoken); setIsSubscribe(subscribe.isValid); } }; const handleStrInput = (e) => { setFormData({ ...formData, [e.target.name]: e.target.value }); }; - // const handleFolder = (data) => { - // console.log("handleFolder ", data) - // setFolder(data); - // }; // Define a function to handle form submission const handleSubmit = async (e) => { @@ -85,7 +78,7 @@ const EditTemplate = ({ template, onSuccess }) => {
{ } > {t("auto-reminder")} - {" "} {!isSubscribe && isEnableSubscription && }