mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update to new confirm pattern
This commit is contained in:
parent
031fceebd3
commit
28d045d7fa
1 changed files with 5 additions and 3 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue