settings: Improve wording in delete user group confirmation modal.

Fixes #22593.
This commit is contained in:
Rishant Rokaha
2022-07-28 12:44:42 -04:00
committed by GitHub
parent b02779c005
commit b16d2cc55c
2 changed files with 4 additions and 2 deletions

View File

@@ -396,8 +396,10 @@ export function set_up() {
group_name: user_group.name, group_name: user_group.name,
}); });
const user_group_name = user_group.name;
confirm_dialog.launch({ confirm_dialog.launch({
html_heading: $t_html({defaultMessage: "Delete user group"}), html_heading: $t_html({defaultMessage: "Delete {user_group_name}?"}, {user_group_name}),
html_body, html_body,
on_click: delete_user_group, on_click: delete_user_group,
}); });

View File

@@ -1,5 +1,5 @@
<p> <p>
{{#tr}} {{#tr}}
Are you sure you want to delete <b>{group_name}</b>? This action cannot be undone.
{{/tr}} {{/tr}}
</p> </p>