From 4f4236101bec2ace8f309b87d85b08b15494180d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 6 Dec 2021 14:27:43 -0500 Subject: [PATCH] fix: wrong usage of is ACP --- public/src/modules/accounts/invite.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/src/modules/accounts/invite.js b/public/src/modules/accounts/invite.js index 937ab6401f..b596a16904 100644 --- a/public/src/modules/accounts/invite.js +++ b/public/src/modules/accounts/invite.js @@ -14,15 +14,15 @@ define('accounts/invite', ['api', 'benchpress', 'bootbox'], function (api, Bench Benchpress.parse('modals/invite', { groups: groups }, function (html) { bootbox.dialog({ message: html, - title: `[[${isACP ? 'admin/manage/users:invite' : 'users:invite'}]]`, + title: `[[${isACP() ? 'admin/manage/users:invite' : 'users:invite'}]]`, onEscape: true, buttons: { cancel: { - label: `[[${isACP ? 'admin/manage/users:alerts.button-cancel' : 'modules:bootbox.cancel'}]]`, + label: `[[${isACP() ? 'admin/manage/users:alerts.button-cancel' : 'modules:bootbox.cancel'}]]`, className: 'btn-default', }, invite: { - label: `[[${isACP ? 'admin/manage/users:invite' : 'users:invite'}]]`, + label: `[[${isACP() ? 'admin/manage/users:invite' : 'users:invite'}]]`, className: 'btn-primary', callback: Invite.send, }, @@ -54,7 +54,7 @@ define('accounts/invite', ['api', 'benchpress', 'bootbox'], function (api, Bench } api.post(`/users/${app.user.uid}/invites`, data).then(() => { - app.alertSuccess(`[[${isACP ? 'admin/manage/users:alerts.email-sent-to' : 'users:invitation-email-sent'}, ${data.emails.replace(/,/g, ', ')}]]`); + app.alertSuccess(`[[${isACP() ? 'admin/manage/users:alerts.email-sent-to' : 'users:invitation-email-sent'}, ${data.emails.replace(/,/g, ', ')}]]`); }).catch((err) => { app.alertError(err.message); });