From ec1e0397901f12cd1c9dc99eab60d6464cac5a0b Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 14 Mar 2018 14:21:49 +0100 Subject: Show EOL warning in the update section Signed-off-by: Joas Schilling --- apps/updatenotification/css/admin.css | 4 ++++ apps/updatenotification/js-src/app.js | 1 + apps/updatenotification/js-src/components/root.vue | 8 ++++++++ apps/updatenotification/lib/Settings/Admin.php | 1 + apps/updatenotification/lib/UpdateChecker.php | 1 + apps/updatenotification/tests/Settings/AdminTest.php | 2 ++ apps/updatenotification/tests/UpdateCheckerTest.php | 4 ++++ lib/private/Updater/VersionCheck.php | 1 + tests/lib/Updater/VersionCheckTest.php | 4 ++++ 9 files changed, 26 insertions(+) diff --git a/apps/updatenotification/css/admin.css b/apps/updatenotification/css/admin.css index 52cc961ae35..775e2134ba5 100644 --- a/apps/updatenotification/css/admin.css +++ b/apps/updatenotification/css/admin.css @@ -40,3 +40,7 @@ color: #555; font-weight: normal; } + +#updatenotification .warning { + color: #ce3702; +} diff --git a/apps/updatenotification/js-src/app.js b/apps/updatenotification/js-src/app.js index bf96a2ff326..0b28cabd6ac 100644 --- a/apps/updatenotification/js-src/app.js +++ b/apps/updatenotification/js-src/app.js @@ -48,6 +48,7 @@ define(function (require) { this.vm.channels = data.channels; this.vm.notifyGroups = data.notifyGroups; this.vm.isDefaultUpdateServerURL = data.isDefaultUpdateServerURL; + this.vm.versionIsEol = data.versionIsEol; } }; }); diff --git a/apps/updatenotification/js-src/components/root.vue b/apps/updatenotification/js-src/components/root.vue index 774fd6dd539..a52e1b12bd4 100644 --- a/apps/updatenotification/js-src/components/root.vue +++ b/apps/updatenotification/js-src/components/root.vue @@ -2,6 +2,13 @@