🔥 The free & Open Source DocuSign alternative
JavaScript digital-signaturedocument-signingdocusign-alternativedocusign-freee-signatureelectronic-signatureelectronic-signaturesesignesignaturehacktoberfestjavascriptlegaltechmongodbnodejsopen-sourcepdf-signpdf-signaturereactjsself-hostedsign-pdf-files
fix: templateid share option in mobile view
RaktimaNXG726eb2ffe643
diff --git a/apps/OpenSign/src/primitives/GetReportDisplay.js b/apps/OpenSign/src/primitives/GetReportDisplay.jsindex 20cab3cec..2ac9c8011 100644--- a/apps/OpenSign/src/primitives/GetReportDisplay.js+++ b/apps/OpenSign/src/primitives/GetReportDisplay.js@@ -1054,17 +1054,18 @@ const ReportTable = (props) => {}};const handleEmbedFunction = async (item) => {+ setIsPublicProfile({+ [item.objectId]: props.isPublic[item.objectId]+ });+ let extendUser = JSON.parse(localStorage.getItem("Extand_Class"));+ setIsPublicUserName(extendUser[0]?.UserName || "");+ };+ const handleShareTemplateid = async (templateId) => {await window.navigator.share({- text: item.objectId,- title: "templateId share"+ text: templateId,+ title: "Template-Id"});- // setIsPublicProfile({- // [item.objectId]: props.isPublic[item.objectId]- // });- // let extendUser = JSON.parse(localStorage.getItem("Extand_Class"));- // setIsPublicUserName(extendUser[0]?.UserName || "");};-return (<div className="relative">{Object.keys(actLoader)?.length > 0 && (@@ -1399,19 +1400,20 @@ const ReportTable = (props) => {</span></div><div className="flex items-center gap-2">- <RWebShare- data={{- text: item.objectId,- title: "templateId"- }}+ <button+ onClick={() =>+ handleShareTemplateid(+ item.objectId+ )+ }+ className="op-btn op-btn-primary op-btn-outline op-btn-xs md:op-btn-sm ">- <button className="op-btn op-btn-primary op-btn-outline op-btn-xs md:op-btn-sm ">- <i className="fa-light fa-share-from-square"></i>{" "}- <span className="hidden md:inline-block">- {t("btnLabel.Share")}- </span>- </button>- </RWebShare>+ <i className="fa-light fa-share-from-square"></i>{" "}+ <span className="hidden md:inline-block">+ {t("btnLabel.Share")}+ </span>+ </button>+<buttonclassName="op-btn op-btn-primary op-btn-outline op-btn-xs md:op-btn-sm"onClick={() =>