mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge conditions in plugin install
This commit is contained in:
parent
2cbcddd5da
commit
c14b20727a
1 changed files with 6 additions and 8 deletions
|
@ -118,14 +118,12 @@ export default function(view, params) {
|
||||||
})[0];
|
})[0];
|
||||||
|
|
||||||
const version = $('#selectVersion', page).val();
|
const version = $('#selectVersion', page).val();
|
||||||
if (installedPlugin) {
|
if (installedPlugin && installedPlugin.Version === version) {
|
||||||
if (installedPlugin.Version === version) {
|
|
||||||
loading.hide();
|
loading.hide();
|
||||||
Dashboard.alert({
|
Dashboard.alert({
|
||||||
message: globalize.translate('MessageAlreadyInstalled'),
|
message: globalize.translate('MessageAlreadyInstalled'),
|
||||||
title: globalize.translate('HeaderPluginInstallation')
|
title: globalize.translate('HeaderPluginInstallation')
|
||||||
});
|
});
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
performInstallation(page, name, guid, version);
|
performInstallation(page, name, guid, version);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue