From d2dd58ce3bd2ec1331e571b119074682ed5319ad Mon Sep 17 00:00:00 2001 From: Raman Saparkhan <109868980+roma2023@users.noreply.github.com> Date: Sun, 15 Sep 2024 21:53:26 +0300 Subject: [PATCH 1/2] modify register.js --- public/src/client/register.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/client/register.js b/public/src/client/register.js index d8144d26d5..085f11a4b0 100644 --- a/public/src/client/register.js +++ b/public/src/client/register.js @@ -135,7 +135,7 @@ define('forum/register', [ if (results.every(obj => obj.status === 'rejected')) { showSuccess(usernameInput, username_notify, successIcon); } else { - showError(usernameInput, username_notify, '[[error:username-taken]]'); + showError(usernameInput, username_notify, '[[error:username-taken]]. Maybe try' + usernameInput.val() + 'suffix'); } callback(); From 08b19d40c3589badd87f2ce569a9ef7a7c113de1 Mon Sep 17 00:00:00 2001 From: Raman Saparkhan <109868980+roma2023@users.noreply.github.com> Date: Sun, 15 Sep 2024 21:58:52 +0300 Subject: [PATCH 2/2] Fixing lint issues --- public/src/client/register.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/src/client/register.js b/public/src/client/register.js index 085f11a4b0..7ec16d0f97 100644 --- a/public/src/client/register.js +++ b/public/src/client/register.js @@ -135,7 +135,8 @@ define('forum/register', [ if (results.every(obj => obj.status === 'rejected')) { showSuccess(usernameInput, username_notify, successIcon); } else { - showError(usernameInput, username_notify, '[[error:username-taken]]. Maybe try' + usernameInput.val() + 'suffix'); + showError(usernameInput, username_notify, '[[error:username-taken]]'); + showError(usernameInput, username_notify, `[[error:username-taken. Maybe try ${username}suffix]]`); } callback();