mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #2442 from jellyfin/plugin-tweaks
minor improvements to plugin pages
(cherry picked from commit d149430f65
)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
This commit is contained in:
parent
8bb34c4266
commit
48201581d6
4 changed files with 57 additions and 12 deletions
|
@ -22,6 +22,10 @@ function populateHistory(packageInfo, page) {
|
|||
function populateVersions(packageInfo, page, installedPlugin) {
|
||||
let html = '';
|
||||
|
||||
packageInfo.versions.sort((a, b) => {
|
||||
return b.timestamp < a.timestamp ? -1 : 1;
|
||||
});
|
||||
|
||||
for (let i = 0; i < packageInfo.versions.length; i++) {
|
||||
const version = packageInfo.versions[i];
|
||||
html += '<option value="' + version.version + '">' + globalize.translate('PluginFromRepo', version.version, version.repositoryName) + '</option>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue