diff --git a/lang/admin/en-us.json b/lang/admin/en-us.json index 6ffa56a..57efcf2 100644 --- a/lang/admin/en-us.json +++ b/lang/admin/en-us.json @@ -158,6 +158,7 @@ "errorSendWelcomeEmail": "Failed to send welcome message (check console/logs)", "errorApplyUpdate": "Failed to apply update, try manually.", "errorCheckUpdate": "Failed to check for update.", + "errorNoReferralTemplate": "Profile doesn't contain referral template, add one in settings.", "updateAvailable": "A new update is available, check settings.", "noUpdatesAvailable": "No new updates available." }, @@ -223,4 +224,4 @@ "plural": "Extended expiry for {n} users." } } -} +} diff --git a/ts/modules/accounts.ts b/ts/modules/accounts.ts index cab57d6..99ba6b9 100644 --- a/ts/modules/accounts.ts +++ b/ts/modules/accounts.ts @@ -1794,7 +1794,7 @@ export class accountsList { if (req.readyState == 4) { toggleLoader(button); if (req.status == 400) { - window.notifications.customError("unknownError", window.lang.notif("errorUnknown")); + window.notifications.customError("noReferralTemplateError", window.lang.notif("errorNoReferralTemplate")); } else if (req.status == 200 || req.status == 204) { window.notifications.customSuccess("enableReferralsSuccess", window.lang.quantity("appliedSettings", list.length)); }