diff --git a/assets/webconfig/content/update.html b/assets/webconfig/content/update.html
index 08aec6cb..282dea24 100644
--- a/assets/webconfig/content/update.html
+++ b/assets/webconfig/content/update.html
@@ -4,6 +4,7 @@
Overview about all available Hyperion versions. On top you could update or downgrade your version of Hyperion whenever you want. Sorted from newest to oldest
+ At the moment the install buttons are not working. Development is still ongoing here.
@@ -17,10 +18,23 @@
diff --git a/assets/webconfig/i18n/de.json b/assets/webconfig/i18n/de.json
index 41fbfabb..4df08d03 100644
--- a/assets/webconfig/i18n/de.json
+++ b/assets/webconfig/i18n/de.json
@@ -256,6 +256,7 @@
"update_button_changelog" : "Zeige Änderungsprotokoll",
"update_label_type" : "Art:",
"update_versreminder" : "Deine Version: $1",
+ "update_error_getting_versions" : "Wir hatten Probleme die verfügbaren Versionen zu ermitteln.",
"about_version" : "Version",
"about_build" : "Build",
"about_builddate" : "Build Datum",
diff --git a/assets/webconfig/i18n/en.json b/assets/webconfig/i18n/en.json
index bd118cf1..9bc35d80 100644
--- a/assets/webconfig/i18n/en.json
+++ b/assets/webconfig/i18n/en.json
@@ -256,6 +256,7 @@
"update_button_changelog" : "Full changelog",
"update_label_type" : "Type:",
"update_versreminder" : "Your version: $1",
+ "update_error_getting_versions" : "We had trouble to determinate the available Versions.",
"about_version" : "Version",
"about_build" : "Build",
"about_builddate" : "Build date",
diff --git a/assets/webconfig/index.html b/assets/webconfig/index.html
index 55e97eb3..6b5b54f6 100644
--- a/assets/webconfig/index.html
+++ b/assets/webconfig/index.html
@@ -179,11 +179,8 @@
diff --git a/assets/webconfig/js/content_dashboard.js b/assets/webconfig/js/content_dashboard.js
index fc8d4be1..8a3d313c 100644
--- a/assets/webconfig/js/content_dashboard.js
+++ b/assets/webconfig/js/content_dashboard.js
@@ -80,40 +80,57 @@ $(document).ready( function() {
$('#dash_ports').html(window.serverConfig.flatbufServer.port+' | '+window.serverConfig.protoServer.port);
$('#dash_versionbranch').html(window.serverConfig.general.versionBranch);
- $.get( "https://raw.githubusercontent.com/hyperion-project/hyperion.ng/master/version.json", function( data ) {
- window.parsedUpdateJSON = JSON.parse(data);
+ $.get( window.gitHubReleaseApiUrl, function( releases ) {
+ window.gitHubVersionList = releases;
- for(let i=0; i -1)
+ //{
+ window.latestBetaVersion = releases[i];
+ //break;
+ //}
+ //}
break;
}
}
- for(let i=0; i'+$.i18n('dashboard_infobox_message_updatewarning', window.latestVersion.versionnr) + ' (' + window.latestVersion.channel + ')');
- else
- $('#versioninforesult').html(''+$.i18n('dashboard_infobox_message_updatesuccess')+'
');
+ if ( cleanCurrentVersion < cleanLatestVersion )
+ $('#versioninforesult').html(''+$.i18n('dashboard_infobox_message_updatewarning', window.latestVersion.tag_name) + ' (' + (window.latestVersion.prerelease == true ? "Beta" : "Stable") + ')
');
+ else
+ $('#versioninforesult').html(''+$.i18n('dashboard_infobox_message_updatesuccess')+'
');
+ });
});
//determine platform
diff --git a/assets/webconfig/js/hyperion.js b/assets/webconfig/js/hyperion.js
index 8f8a7b95..e56867c4 100644
--- a/assets/webconfig/js/hyperion.js
+++ b/assets/webconfig/js/hyperion.js
@@ -2,12 +2,13 @@
window.webPrio = 1;
window.webOrigin = "Web Configuration";
window.showOptHelp = true;
+window.gitHubReleaseApiUrl = "https://api.github.com/repos/b1rdhous3/hyperion.ng/releases";
window.currentVersion = null;
window.latestVersion = null;
window.latestStableVersion = null;
window.latestBetaVersion = null;
+window.gitHubVersionList = null;
window.serverInfo = {};
-window.parsedUpdateJSON = {};
window.serverSchema = {};
window.serverConfig = {};
window.schema = {};