mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-10-23 17:12:25 +00:00
Merge pull request #284 from Rgoplay/username-friend-request-form-fix
Fixes form error + hint when friend request sent
This commit is contained in:
3 files changed
+6
-2
No files matched your search
@@ -320,6 +320,7 @@ class Direct extends Guild {
|
||||
const box = text.input.deref();
|
||||
if (!box) return;
|
||||
box.value = "";
|
||||
box.placeholder = I18n.friends.requestsent();
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -275,6 +275,7 @@
|
||||
"friends": {
|
||||
"addfriend": "Add friend",
|
||||
"addfriendpromt": "Add friends by username:",
|
||||
"requestsent": "Request sent!",
|
||||
"all": "All",
|
||||
"all:": "All friends:",
|
||||
"blocked": "Blocked",
|
||||
|
||||
Reference in new issue
Block a user