Make the 2fa disable prompt a child of the Settings window

This commit is contained in:
Nariman Jelveh 2024-05-06 16:16:57 -07:00
parent db8e2c3bf2
commit 5409547bba

View File

@ -66,6 +66,11 @@ export default {
const confirmation = i18n('disable_2fa_confirm'); const confirmation = i18n('disable_2fa_confirm');
const alert_resp = await UIAlert({ const alert_resp = await UIAlert({
message: confirmation, message: confirmation,
window_options: {
parent_uuid: $el_window.attr('data-element_uuid'),
disable_parent_window: true,
parent_center: true,
},
buttons:[ buttons:[
{ {
label: i18n('yes'), label: i18n('yes'),
@ -73,7 +78,7 @@ export default {
type: 'primary', type: 'primary',
}, },
{ {
label: i18n('no'), label: i18n('cancel'),
value: false, value: false,
}, },
] ]