From 726eb2ffe6439adb2759373d4a4e14619006ce92 Mon Sep 17 00:00:00 2001 From: RaktimaNXG Date: Wed, 28 Aug 2024 11:54:55 +0530 Subject: [PATCH] fix: templateid share option in mobile view --- .../src/primitives/GetReportDisplay.js | 44 ++++++++++--------- 1 file changed, 23 insertions(+), 21 deletions(-) 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")} + + +