From 5953ae3b21ff1fe0083a7245dc9b2f8109313f7d Mon Sep 17 00:00:00 2001 From: birdhouse Date: Thu, 20 Jun 2019 21:02:37 +0200 Subject: [PATCH] Changes to version update logic Now the last stable will be used when the latest stable version have a higher version number than the last beta version. This only triggers when Beta Branch is used. If the user chooses Stable only stable versions will be considered. --- assets/webconfig/js/content_dashboard.js | 30 +++++++++++++++++++----- assets/webconfig/js/hyperion.js | 2 ++ 2 files changed, 26 insertions(+), 6 deletions(-) diff --git a/assets/webconfig/js/content_dashboard.js b/assets/webconfig/js/content_dashboard.js index 1af95f27..ee4bb32b 100644 --- a/assets/webconfig/js/content_dashboard.js +++ b/assets/webconfig/js/content_dashboard.js @@ -84,21 +84,39 @@ $(document).ready( function() { window.parsedUpdateJSON = JSON.parse(data); for(let i=0; i'+$.i18n('dashboard_infobox_message_updatewarning', window.latestVersion)+''); + $('#versioninforesult').html('
'+$.i18n('dashboard_infobox_message_updatewarning', window.latestVersion.versionnr) + ' (' + window.latestVersion.channel + ')
'); else $('#versioninforesult').html('
'+$.i18n('dashboard_infobox_message_updatesuccess')+'
'); }); diff --git a/assets/webconfig/js/hyperion.js b/assets/webconfig/js/hyperion.js index 5c9a5f95..8f8a7b95 100644 --- a/assets/webconfig/js/hyperion.js +++ b/assets/webconfig/js/hyperion.js @@ -4,6 +4,8 @@ window.webOrigin = "Web Configuration"; window.showOptHelp = true; window.currentVersion = null; window.latestVersion = null; +window.latestStableVersion = null; +window.latestBetaVersion = null; window.serverInfo = {}; window.parsedUpdateJSON = {}; window.serverSchema = {};