users: Extract code for showing deactivation modal in new file.

This commit creates a new file user_deactivation_ui.js which
now contains the code for showing deactivation modal for user
and bots.

Since confirm_deactivation and confirm_bot_deactivation functions
are used in multiple places, this change helps us in avoiding
import cycles.
This commit is contained in:
Sahil Batra
2023-09-25 22:49:40 +05:30
committed by Tim Abbott
parent 8852c4b7af
commit f3c17b8d4f
5 changed files with 95 additions and 84 deletions

View File

@@ -225,6 +225,7 @@ EXEMPT_FILES = make_set(
"web/src/upload_widget.ts",
"web/src/url-template.d.ts",
"web/src/user_card_popover.js",
"web/src/user_deactivation_ui.js",
"web/src/user_group_create.js",
"web/src/user_group_create_members.js",
"web/src/user_group_create_members_data.ts",