From 5a20ac7df2e3e6ca4c7f43b66afd87c7c6493c5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 6 Jun 2018 13:28:50 +0200 Subject: [PATCH] Add warning state to setup checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- settings/css/settings.scss | 4 ++++ settings/js/admin.js | 6 +++++- settings/templates/settings/admin/overview.php | 5 ++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/settings/css/settings.scss b/settings/css/settings.scss index 3062b9f51f..3b6befc438 100644 --- a/settings/css/settings.scss +++ b/settings/css/settings.scss @@ -1039,6 +1039,7 @@ table.grid td.date { } #security-warning-state-ok, +#security-warning-state-warning, #security-warning-state-failure, #security-warning-state-loading { span { @@ -1057,6 +1058,9 @@ table.grid td.date { &.icon-checkmark-white { background-color: $color-success; } + &.icon-error-white { + background-color: $color-warning; + } &.icon-close-white { background-color: $color-error; } diff --git a/settings/js/admin.js b/settings/js/admin.js index 0ebe1ebb23..61c40e789b 100644 --- a/settings/js/admin.js +++ b/settings/js/admin.js @@ -292,7 +292,11 @@ $(document).ready(function(){ if (hasMessages) { $('#postsetupchecks-hint').removeClass('hidden'); - $('#security-warning-state-failure').removeClass('hidden'); + if ($errorsEl.find('li').length > 0) { + $('#security-warning-state-failure').removeClass('hidden'); + } else { + $('#security-warning-state-warning').removeClass('hidden'); + } } else { var securityWarning = $('#security-warning'); if (securityWarning.children('ul').children().length === 0) { diff --git a/settings/templates/settings/admin/overview.php b/settings/templates/settings/admin/overview.php index dd253b8264..08aee8b5b7 100644 --- a/settings/templates/settings/admin/overview.php +++ b/settings/templates/settings/admin/overview.php @@ -155,7 +155,10 @@ t('All checks passed.'));?> +
t('Checking for system and security issues.'));?>