From 7a612c22b0a8fe59dde012b9fb7f5c572de5a3db Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Wed, 19 Feb 2020 00:21:16 +0100 Subject: [PATCH] hide asu feature when not enabled but enable by default for this branch for development --- config.js | 2 +- index.html | 6 ++---- index.js | 4 ++++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/config.js b/config.js index 63bfb09..51cc438 100644 --- a/config.js +++ b/config.js @@ -12,5 +12,5 @@ var config = { '18.06.7': 'names-18.06.7.json' }, // Build custom images (Attented Sysupgrade server) - //asu_url: '/api/build' + asu_url: '/api/build' }; diff --git a/index.html b/index.html index a2f1d4a..f47332d 100644 --- a/index.html +++ b/index.html @@ -34,12 +34,10 @@ -
+ -
diff --git a/index.js b/index.js index d31ee94..ef07bfe 100644 --- a/index.js +++ b/index.js @@ -385,6 +385,10 @@ function updateImages(version, commit, model, url, mobj) { updateImages(); changeLanguage(config.language); +if (config.asu_url) { + $('custom').style.display = 'block'; +} + setupSelectList($("releases"), Object.keys(config.versions), function(version) { loadFile(config.versions[version], function(obj) { data = obj -- 2.30.2