1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-23 01:20:11 +00:00

accounts: descriptive error when no template found

This commit is contained in:
Harvey Tindall 2023-09-07 14:04:32 +01:00
parent db21131185
commit 468b2f3284
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
2 changed files with 3 additions and 2 deletions

View File

@ -158,6 +158,7 @@
"errorSendWelcomeEmail": "Failed to send welcome message (check console/logs)", "errorSendWelcomeEmail": "Failed to send welcome message (check console/logs)",
"errorApplyUpdate": "Failed to apply update, try manually.", "errorApplyUpdate": "Failed to apply update, try manually.",
"errorCheckUpdate": "Failed to check for update.", "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.", "updateAvailable": "A new update is available, check settings.",
"noUpdatesAvailable": "No new updates available." "noUpdatesAvailable": "No new updates available."
}, },

View File

@ -1794,7 +1794,7 @@ export class accountsList {
if (req.readyState == 4) { if (req.readyState == 4) {
toggleLoader(button); toggleLoader(button);
if (req.status == 400) { 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) { } else if (req.status == 200 || req.status == 204) {
window.notifications.customSuccess("enableReferralsSuccess", window.lang.quantity("appliedSettings", list.length)); window.notifications.customSuccess("enableReferralsSuccess", window.lang.quantity("appliedSettings", list.length));
} }