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
a42596f118
commit
166a16b60d
11 changed files with 46 additions and 55 deletions
|
@ -53,17 +53,16 @@
|
|||
msg += virtualFolder.Locations.join("<br/>");
|
||||
}
|
||||
|
||||
Dashboard.confirm(msg, Globalize.translate('HeaderRemoveMediaFolder'), function (confirmResult) {
|
||||
require(['confirm'], function (confirm) {
|
||||
|
||||
if (confirmResult) {
|
||||
confirm(msg, Globalize.translate('HeaderRemoveMediaFolder')).then(function () {
|
||||
|
||||
var refreshAfterChange = shouldRefreshLibraryAfterChanges(page);
|
||||
|
||||
ApiClient.removeVirtualFolder(virtualFolder.Name, refreshAfterChange).then(function () {
|
||||
reloadLibrary(page);
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue