mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update plugin installs
This commit is contained in:
parent
fbec970987
commit
50c405f522
20 changed files with 73 additions and 40 deletions
|
@ -233,12 +233,37 @@
|
|||
|
||||
});
|
||||
|
||||
function performInstallation(packageName, guid, updateClass, version) {
|
||||
function performInstallation(page, packageName, guid, updateClass, version) {
|
||||
|
||||
ApiClient.installPlugin(packageName, guid, updateClass, version).done(function () {
|
||||
var developer = $('#developer', page).html().toLowerCase();
|
||||
|
||||
var alertCallback = function (confirmed) {
|
||||
|
||||
if (confirmed) {
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
ApiClient.installPlugin(packageName, guid, updateClass, version).done(function () {
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
if (developer != 'luke' && developer != 'ebr') {
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
});
|
||||
|
||||
var msg = Globalize.translate('MessagePluginInstallDisclaimer');
|
||||
msg += '<br/>';
|
||||
msg += '<br/>';
|
||||
msg += Globalize.translate('PleaseConfirmPluginInstallation');
|
||||
|
||||
Dashboard.confirm(msg, Globalize.translate('HeaderConfirmPluginInstallation'), alertCallback);
|
||||
|
||||
} else {
|
||||
alertCallback(true);
|
||||
}
|
||||
}
|
||||
|
||||
function addPluginpage() {
|
||||
|
@ -275,7 +300,7 @@
|
|||
title: Globalize.translate('HeaderPluginInstallation')
|
||||
});
|
||||
} else {
|
||||
performInstallation(name, guid, vals[1], version);
|
||||
performInstallation(page, name, guid, vals[1], version);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue