mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
user_deactivation: Move modal_parent one level up in the DOM.
The user deactivate button is also present in the "Deactivated users" tab, a sibling element of the current modal_parent, #admin-user-list. Adding the confirm_dialog modal to #admin-user-list won't have any effect in the "Deactivated users" tab. Move it one level up, i.e. to the parent element of #admin-user-list and #admin-deactivated-users-list. Fixes #18928.
This commit is contained in:
@@ -490,7 +490,7 @@ function open_bot_form(person) {
|
||||
|
||||
function confirm_deactivation(row, user_id, status_field) {
|
||||
const user = people.get_by_user_id(user_id);
|
||||
const modal_parent = $("#admin-user-list");
|
||||
const modal_parent = $("#settings_content .organization-box");
|
||||
const opts = {
|
||||
username: user.full_name,
|
||||
email: user.email,
|
||||
|
||||
Reference in New Issue
Block a user