Skip to content

Commit 8f08008

Browse files
refactor: changes in text of modal
1 parent f69aafc commit 8f08008

File tree

8 files changed

+9
-17
lines changed

8 files changed

+9
-17
lines changed

apps/OpenSign/public/locales/en/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@
635635
"quota-mail": "You've reached your limit of 15 signature request emails for this month. Upgrade now to continue sending emails directly.",
636636
"quota-mail-tip":"Tip: You can still sign <1>unlimited documents</1> by manually sharing the signing request links.",
637637
"quota-mail-head":"Quota Reached",
638-
"unauthorized-modal":"You don't have permission to perform this action, please contact {{adminName}}<{{adminEmail}}>.",
638+
"unauthorized-modal":"You don't have permission to perform this action, please contact {{adminEmail}}.",
639639
"sent-this-month":"Sent this month",
640640
"available-seats":"Available seats",
641641
"buy-users":"Buy more users"

apps/OpenSign/public/locales/fr/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@
634634
"quota-mail": "Vous avez atteint votre limite de 15 e-mails de demande de signature pour ce mois. Mettez à niveau maintenant pour continuer à envoyer des e-mails directement.",
635635
"quota-mail-tip-tip":"Astuce : Vous pouvez toujours signer un nombre <1>illimité de documents</1> en partageant manuellement les liens de demande de signature.",
636636
"quota-mail-head":"Quota atteint",
637-
"unauthorized-modal":"Vous n'êtes pas autorisé à effectuer cette action, veuillez contacter {{adminName}}<{{adminEmail}}>.",
637+
"unauthorized-modal":"Vous n'êtes pas autorisé à effectuer cette action, veuillez contacter {{adminEmail}}.",
638638
"sent-this-month":"envoyé ce mois-ci",
639639
"available-seats":"Disponible sièges",
640640
"buy-users":"Acheter plus d'utilisateurs"

apps/OpenSign/src/components/AddUser.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,7 @@ const AddUser = (props) => {
498498
{planInfo.adminId !== extUser?.objectId ? (
499499
<div className="mb-3 mt-1 flex justify-center text-center items-center font-medium break-all">
500500
{t("unauthorized-modal", {
501-
adminName: extUser?.CreatedBy?.name,
502-
adminEmail: extUser?.CreatedBy?.email
501+
adminEmail: extUser?.TenantId?.EmailAddress
503502
})}
504503
</div>
505504
) : (

apps/OpenSign/src/components/BulkSendUi.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ const BulkSendUi = (props) => {
3131
const [isFreePlan, setIsFreePlan] = useState(false);
3232
const [admin, setAdmin] = useState({
3333
objectId: "",
34-
name: "",
3534
email: "",
3635
isAdmin: true
3736
});
@@ -63,8 +62,7 @@ const BulkSendUi = (props) => {
6362
setAdmin((obj) => ({
6463
...obj,
6564
isAdmin: false,
66-
name: extUser?.CreatedBy?.name,
67-
email: extUser?.CreatedBy?.email
65+
email: extUser?.TenantId?.EmailAddress
6866
}));
6967
}
7068
setAdmin((obj) => ({ ...obj, objectId: subscription?.adminId }));
@@ -491,10 +489,7 @@ const BulkSendUi = (props) => {
491489
</form>
492490
) : (
493491
<div className="mx-8 mt-4 mb-8 flex justify-center text-center items-center font-medium break-all">
494-
{t("unauthorized-modal", {
495-
adminName: admin?.name,
496-
adminEmail: admin?.email
497-
})}
492+
{t("unauthorized-modal", { adminEmail: admin?.email })}
498493
</div>
499494
)}
500495
</>

apps/OpenSign/src/pages/GenerateToken.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ function GenerateToken() {
2828
plan: "",
2929
isValid: false,
3030
adminId: "",
31-
adminName: "",
3231
adminEmail: ""
3332
});
3433
const [isAlert, setIsAlert] = useState({ type: "success", msg: "" });
@@ -154,8 +153,7 @@ function GenerateToken() {
154153
} else {
155154
setIsSubscribe((obj) => ({
156155
...obj,
157-
adminName: extUser?.CreatedBy?.name,
158-
adminEmail: extUser?.CreatedBy?.email
156+
adminEmail: extUser?.TenantId?.EmailAddress
159157
}));
160158
setIsModal((obj) => ({ ...obj, unauthorized: !obj.unauthorized }));
161159
}
@@ -447,7 +445,6 @@ function GenerateToken() {
447445
>
448446
<div className="m-8 flex justify-center text-center items-center font-medium break-all">
449447
{t("unauthorized-modal", {
450-
adminName: isSubscribe?.adminName,
451448
adminEmail: isSubscribe?.adminEmail
452449
})}
453450
</div>

apps/OpenSign/src/script/locales/en/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@
632632
"quota-mail": "You've reached your limit of 15 signature request emails for this month. Upgrade now to continue sending emails directly.",
633633
"quota-mail-tip":"Tip: You can still sign <1>unlimited documents</1> by manually sharing the signing request links.",
634634
"quota-mail-head":"Quota Reached",
635-
"unauthorized-modal":"You don't have permission to perform this action, please contact {{adminName}}<{{adminEmail}}>.",
635+
"unauthorized-modal":"You don't have permission to perform this action, please contact {{adminEmail}}.",
636636
"sent-this-month":"Sent this month",
637637
"available-seats":"Available seats",
638638
"buy-users":"Buy more users"

apps/OpenSign/src/script/locales/fr/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@
631631
"quota-mail": "Vous avez atteint votre limite de 15 e-mails de demande de signature pour ce mois. Mettez à niveau maintenant pour continuer à envoyer des e-mails directement.",
632632
"quota-mail-tip":"Astuce : Vous pouvez toujours signer un nombre <1>illimité de documents</1> en partageant manuellement les liens de demande de signature.",
633633
"quota-mail-head":"Quota atteint",
634-
"unauthorized-modal":"Vous n'êtes pas autorisé à effectuer cette action, veuillez contacter {{adminName}}<{{adminEmail}}>.",
634+
"unauthorized-modal":"Vous n'êtes pas autorisé à effectuer cette action, veuillez contacter {{adminEmail}}.",
635635
"sent-this-month":"envoyé ce mois-ci",
636636
"available-seats":"Disponible sièges",
637637
"buy-users":"Acheter plus d'utilisateurs"

apps/OpenSignServer/cloud/parsefunction/getUserDetails.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ async function getUserDetails(request) {
1313
userQuery.include('TenantId');
1414
userQuery.include('UserId');
1515
userQuery.include('CreatedBy');
16+
userQuery.exclude('CreatedBy.authData');
1617
userQuery.exclude('google_refresh_token');
1718
if (userId) {
1819
userQuery.equalTo('CreatedBy', { __type: 'Pointer', className: '_User', objectId: userId });

0 commit comments

Comments
 (0)