From 5409547bba642377bac94e1c982168242c94b365 Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Mon, 6 May 2024 16:16:57 -0700 Subject: [PATCH] Make the 2fa disable prompt a child of the Settings window --- src/UI/Settings/UITabSecurity.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/UI/Settings/UITabSecurity.js b/src/UI/Settings/UITabSecurity.js index 8f0ba543..65ccf5b4 100644 --- a/src/UI/Settings/UITabSecurity.js +++ b/src/UI/Settings/UITabSecurity.js @@ -66,6 +66,11 @@ export default { const confirmation = i18n('disable_2fa_confirm'); const alert_resp = await UIAlert({ message: confirmation, + window_options: { + parent_uuid: $el_window.attr('data-element_uuid'), + disable_parent_window: true, + parent_center: true, + }, buttons:[ { label: i18n('yes'), @@ -73,7 +78,7 @@ export default { type: 'primary', }, { - label: i18n('no'), + label: i18n('cancel'), value: false, }, ]