From ec1e0397901f12cd1c9dc99eab60d6464cac5a0b Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 14 Mar 2018 14:21:49 +0100 Subject: [PATCH] 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 52cc961ae3..775e2134ba 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 bf96a2ff32..0b28cabd6a 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 774fd6dd53..a52e1b12bd 100644 --- a/apps/updatenotification/js-src/components/root.vue +++ b/apps/updatenotification/js-src/components/root.vue @@ -2,6 +2,13 @@