Skip to content

Commit 9b75764

Browse files
authored
Merge pull request #764 from OpenSignLabs/build_dep
fix: resend mail not working, create contact API not working
2 parents 7eacbed + 950b747 commit 9b75764

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

apps/OpenSign/src/primitives/GetReportDisplay.js

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,7 @@ const ReportTable = (props) => {
551551
};
552552
const handleResendMail = async (e, doc, user) => {
553553
e.preventDefault();
554+
console.log("first");
554555
setActLoader({ [user.objectId]: true });
555556
const url = `${localStorage.getItem("baseUrl")}functions/sendmailv3`;
556557
const headers = {
@@ -955,20 +956,22 @@ const ReportTable = (props) => {
955956
onSubmit={(e) =>
956957
handleResendMail(e, item, user)
957958
}
958-
className="w-full flex flex-col gap-2 p-3 text-black"
959+
className="w-full flex flex-col gap-2 p-3 text-black relative"
959960
>
961+
<div className="absolute right-5 text-xs z-40">
962+
<Tooltip
963+
id={`${user.objectId}_help`}
964+
message={
965+
"You can use following variables which will get replaced with their actual values:- {{document_title}}, {{sender_name}}, {{sender_mail}}, {{sender_phone}}, {{receiver_name}}, {{receiver_email}}, {{receiver_phone}}, {{expiry_date}}, {{company_name}}, {{signing_url}}."
966+
}
967+
/>
968+
</div>
960969
<div>
961970
<label
962971
className="text-xs ml-1"
963972
htmlFor="mailsubject"
964973
>
965974
Subject{" "}
966-
<Tooltip
967-
id={isNextStep[user.objectId]}
968-
message={
969-
"You can use following variables which will get replaced with their actual values:- {{document_title}}, {{sender_name}}, {{sender_mail}}, {{sender_phone}}, {{receiver_name}}, {{receiver_email}}, {{receiver_phone}}, {{expiry_date}}, {{company_name}}, {{signing_url}}."
970-
}
971-
/>
972975
</label>
973976
<input
974977
id="mailsubject"
@@ -989,12 +992,6 @@ const ReportTable = (props) => {
989992
htmlFor="mailbody"
990993
>
991994
Body{" "}
992-
<Tooltip
993-
id={isNextStep[user.objectId]}
994-
message={
995-
"You can use following variables which will get replaced with their actual values:- {{document_title}}, {{sender_name}}, {{sender_mail}}, {{sender_phone}}, {{receiver_name}}, {{receiver_email}}, {{receiver_phone}}, {{expiry_date}}, {{company_name}}, {{signing_url}}."
996-
}
997-
/>
998995
</label>
999996
<EditorToolbar containerId="toolbar1" />
1000997
<ReactQuill

apps/OpenSignServer/cloud/customRoute/v1/routes/createContact.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export default async function createContact(request, response) {
128128
userId: userRes.objectId,
129129
};
130130
await axios.post(roleurl, body, { headers: headers });
131-
contactQuery.set('CreatedBy', userPtr.objectId);
131+
contactQuery.set('CreatedBy', userPtr);
132132
contactQuery.set('UserId', {
133133
__type: 'Pointer',
134134
className: '_User',

0 commit comments

Comments
 (0)