fix: community settings members tab

This commit is contained in:
trisua 2025-06-02 22:50:12 -04:00
parent 51d995c36f
commit 75459080c3

View file

@ -249,7 +249,26 @@
(text "{{ text \"communities:action.select\" }}"))))) (text "{{ text \"communities:action.select\" }}")))))
(div (div
("class" "card flex flex-col gap-2 w-full") ("class" "card flex flex-col gap-2 w-full")
("id" "membership_info"))) ("id" "membership_info"))
(div
("class" "card-nest w-full")
(div
("class" "card small flex items-center justify-between gap-2")
(div
("class" "flex items-center gap-2")
(text "{{ icon \"blocks\" }}")
(span
(text "{{ text \"mod_panel:label.permissions_level_builder\" }}")))
(button
("class" "small quaternary")
("onclick" "update_user_role(document.getElementById('uid').value, document.getElementById('role').value)")
(text "{{ icon \"check\" }}")
(span
(text "{{ text \"general:action.save\" }}"))))
(div
("class" "card flex flex-col gap-2")
("id" "permission_builder"))))
(text "{% if can_manage_channels -%}") (text "{% if can_manage_channels -%}")
(div (div
("class" "card tertiary w-full hidden flex flex-col gap-2") ("class" "card tertiary w-full hidden flex flex-col gap-2")
@ -550,26 +569,7 @@
]); ]);
}); });
};")) };"))
(text "{%- endif %}") (text "{%- endif %}"))
(div
("class" "card-nest w-full")
(div
("class" "card small flex items-center justify-between gap-2")
(div
("class" "flex items-center gap-2")
(text "{{ icon \"blocks\" }}")
(span
(text "{{ text \"mod_panel:label.permissions_level_builder\" }}")))
(button
("class" "small quaternary")
("onclick" "update_user_role(document.getElementById('uid').value, document.getElementById('role').value)")
(text "{{ icon \"check\" }}")
(span
(text "{{ text \"general:action.save\" }}"))))
(div
("class" "card tertiary flex flex-col gap-2")
("id" "permission_builder"))))
(script (script
(text "setTimeout(() => { (text "setTimeout(() => {