Skip to content

Commit 726eb2f

Browse files
fix: templateid share option in mobile view
1 parent a9f22d3 commit 726eb2f

File tree

1 file changed

+22
-20
lines changed

1 file changed

+22
-20
lines changed

apps/OpenSign/src/primitives/GetReportDisplay.js

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,17 +1054,18 @@ const ReportTable = (props) => {
10541054
}
10551055
};
10561056
const handleEmbedFunction = async (item) => {
1057+
setIsPublicProfile({
1058+
[item.objectId]: props.isPublic[item.objectId]
1059+
});
1060+
let extendUser = JSON.parse(localStorage.getItem("Extand_Class"));
1061+
setIsPublicUserName(extendUser[0]?.UserName || "");
1062+
};
1063+
const handleShareTemplateid = async (templateId) => {
10571064
await window.navigator.share({
1058-
text: item.objectId,
1059-
title: "templateId share"
1065+
text: templateId,
1066+
title: "Template-Id"
10601067
});
1061-
// setIsPublicProfile({
1062-
// [item.objectId]: props.isPublic[item.objectId]
1063-
// });
1064-
// let extendUser = JSON.parse(localStorage.getItem("Extand_Class"));
1065-
// setIsPublicUserName(extendUser[0]?.UserName || "");
10661068
};
1067-
10681069
return (
10691070
<div className="relative">
10701071
{Object.keys(actLoader)?.length > 0 && (
@@ -1399,19 +1400,20 @@ const ReportTable = (props) => {
13991400
</span>
14001401
</div>
14011402
<div className="flex items-center gap-2">
1402-
<RWebShare
1403-
data={{
1404-
text: item.objectId,
1405-
title: "templateId"
1406-
}}
1403+
<button
1404+
onClick={() =>
1405+
handleShareTemplateid(
1406+
item.objectId
1407+
)
1408+
}
1409+
className="op-btn op-btn-primary op-btn-outline op-btn-xs md:op-btn-sm "
14071410
>
1408-
<button className="op-btn op-btn-primary op-btn-outline op-btn-xs md:op-btn-sm ">
1409-
<i className="fa-light fa-share-from-square"></i>{" "}
1410-
<span className="hidden md:inline-block">
1411-
{t("btnLabel.Share")}
1412-
</span>
1413-
</button>
1414-
</RWebShare>
1411+
<i className="fa-light fa-share-from-square"></i>{" "}
1412+
<span className="hidden md:inline-block">
1413+
{t("btnLabel.Share")}
1414+
</span>
1415+
</button>
1416+
14151417
<button
14161418
className="op-btn op-btn-primary op-btn-outline op-btn-xs md:op-btn-sm"
14171419
onClick={() =>

0 commit comments

Comments
 (0)