diff --git a/apps/OpenSign/src/primitives/GetReportDisplay.js b/apps/OpenSign/src/primitives/GetReportDisplay.js index 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) => { - await window.navigator.share({ - text: item.objectId, - title: "templateId share" + 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: templateId, + title: "Template-Id" }); - // setIsPublicProfile({ - // [item.objectId]: props.isPublic[item.objectId] - // }); - // let extendUser = JSON.parse(localStorage.getItem("Extand_Class")); - // setIsPublicUserName(extendUser[0]?.UserName || ""); }; - return (
{Object.keys(actLoader)?.length > 0 && ( @@ -1399,19 +1400,20 @@ const ReportTable = (props) => {
- + handleShareTemplateid( + item.objectId + ) + } + className="op-btn op-btn-primary op-btn-outline op-btn-xs md:op-btn-sm " > - - + {" "} + + {t("btnLabel.Share")} + + +