fix: don't allow user display name to be over 32 chars
This commit is contained in:
parent
946f78a90b
commit
fb2a9285d2
4 changed files with 145 additions and 139 deletions
|
@ -111,10 +111,7 @@
|
|||
<div id="files_list" class="flex gap-2 flex-wrap"></div>
|
||||
|
||||
<div class="flex flex-wrap w-full gap-2">
|
||||
{{ components::emoji_picker(element_id="content",
|
||||
render_dialog=true) }} {% if is_supporter -%} {{
|
||||
components::file_picker(files_list_id="files_list") }}
|
||||
{%- endif %}
|
||||
{{ components::create_post_options() }}
|
||||
|
||||
<button class="primary">{{ text "requests:label.answer" }}</button>
|
||||
<button type="button" class="red quaternary" onclick="trigger('me::remove_question', ['{{ question[0].id }}'])">{{ text "general:action.delete" }}</button>
|
||||
|
@ -199,13 +196,17 @@
|
|||
body,
|
||||
})
|
||||
.then((res) => res.json())
|
||||
.then((res) => {
|
||||
.then(async (res) => {
|
||||
trigger("atto::toast", [
|
||||
res.ok ? "success" : "error",
|
||||
res.message,
|
||||
]);
|
||||
|
||||
if (res.ok) {
|
||||
// update settings
|
||||
await update_settings_maybe(res.payload);
|
||||
|
||||
// ...
|
||||
e.target.parentElement.remove();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue