mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #1656 from dmitrylyzo/fix-plugin-install
Fix CircleOfDeath on plugin install
This commit is contained in:
commit
89e584686e
1 changed files with 7 additions and 9 deletions
|
@ -66,7 +66,7 @@ define(['jQuery', 'loading', 'libraryMenu', 'globalize', 'connectionManager', 'e
|
||||||
}
|
}
|
||||||
|
|
||||||
function alertText(options) {
|
function alertText(options) {
|
||||||
require(['alert'], function (alert) {
|
require(['alert'], function ({default: alert}) {
|
||||||
alert(options);
|
alert(options);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -114,14 +114,12 @@ define(['jQuery', 'loading', 'libraryMenu', 'globalize', 'connectionManager', 'e
|
||||||
})[0];
|
})[0];
|
||||||
|
|
||||||
var version = $('#selectVersion', page).val();
|
var 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