Skip to content

Commit a9f22d3

Browse files
fix: share templatId issue
1 parent 16c73d4 commit a9f22d3

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

apps/OpenSign/src/primitives/GetReportDisplay.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,14 +1053,18 @@ const ReportTable = (props) => {
10531053
setTimeout(() => setIsAlert(false), 1500);
10541054
}
10551055
};
1056-
const handleEmbedFunction = (item) => {
1057-
setIsPublicProfile({
1058-
[item.objectId]: props.isPublic[item.objectId]
1056+
const handleEmbedFunction = async (item) => {
1057+
await window.navigator.share({
1058+
text: item.objectId,
1059+
title: "templateId share"
10591060
});
1060-
let extendUser = JSON.parse(localStorage.getItem("Extand_Class"));
1061-
setIsPublicUserName(extendUser[0]?.UserName || "");
1061+
// setIsPublicProfile({
1062+
// [item.objectId]: props.isPublic[item.objectId]
1063+
// });
1064+
// let extendUser = JSON.parse(localStorage.getItem("Extand_Class"));
1065+
// setIsPublicUserName(extendUser[0]?.UserName || "");
10621066
};
1063-
console.log("ispublic", props.isPublic);
1067+
10641068
return (
10651069
<div className="relative">
10661070
{Object.keys(actLoader)?.length > 0 && (
@@ -1397,7 +1401,8 @@ const ReportTable = (props) => {
13971401
<div className="flex items-center gap-2">
13981402
<RWebShare
13991403
data={{
1400-
text: item.objectId
1404+
text: item.objectId,
1405+
title: "templateId"
14011406
}}
14021407
>
14031408
<button className="op-btn op-btn-primary op-btn-outline op-btn-xs md:op-btn-sm ">

0 commit comments

Comments
 (0)