diff --git a/dashboard-ui/scripts/userprofilespage.js b/dashboard-ui/scripts/userprofilespage.js index bb7121a16b..7869a86484 100644 --- a/dashboard-ui/scripts/userprofilespage.js +++ b/dashboard-ui/scripts/userprofilespage.js @@ -4,16 +4,18 @@ var msg = Globalize.translate('DeleteUserConfirmation'); - Dashboard.confirm(msg, Globalize.translate('DeleteUser'), function (result) { + require(['confirm'], function (confirm) { + + confirm(msg, Globalize.translate('DeleteUser')).then(function () { - if (result) { Dashboard.showLoadingMsg(); ApiClient.deleteUser(id).then(function () { loadData(page); }); - } + }); + }); }