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
28d045d7fa
commit
ec1c286c91
4 changed files with 13 additions and 19 deletions
|
@ -4,16 +4,15 @@
|
|||
|
||||
var msg = Globalize.translate('UninstallPluginConfirmation').replace("{0}", name);
|
||||
|
||||
Dashboard.confirm(msg, Globalize.translate('UninstallPluginHeader'), function (result) {
|
||||
|
||||
if (result) {
|
||||
require(['confirm'], function (confirm) {
|
||||
confirm(msg, Globalize.translate('UninstallPluginHeader')).then(function () {
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
ApiClient.uninstallPlugin(uniqueid).then(function () {
|
||||
|
||||
reloadList(page);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue