Merge pull request #284 from Rgoplay/username-friend-request-form-fix

Fixes form error + hint when friend request sent
This commit is contained in:
Mathium05 authored and GitHub committed 2026-03-14 09:43:15 -05:00
commit ad08616acb
3 files changed
+6 -2

No files matched your search

+1
View File
@@ -320,6 +320,7 @@ class Direct extends Guild {
const box = text.input.deref();
if (!box) return;
box.value = "";
box.placeholder = I18n.friends.requestsent();
}
},
{
+4 -2
View File
@@ -2107,12 +2107,14 @@ class Form implements OptionsElement<object> {
div.classList.add("suberror", "suberrora");
e.append(div);
element = div;
element.focus();
setTimeout((_) => {
element.scrollIntoView(false);
}, 100);
} else {
element.classList.remove("suberror");
setTimeout((_) => {
element.classList.add("suberror");
element.focus();
element.scrollIntoView(false);
}, 100);
}
element.textContent = message;
+1
View File
@@ -275,6 +275,7 @@
"friends": {
"addfriend": "Add friend",
"addfriendpromt": "Add friends by username:",
"requestsent": "Request sent!",
"all": "All",
"all:": "All friends:",
"blocked": "Blocked",