summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--settings/css/settings.scss4
-rw-r--r--settings/js/admin.js6
-rw-r--r--settings/templates/settings/admin/overview.php5
3 files changed, 13 insertions, 2 deletions
diff --git a/settings/css/settings.scss b/settings/css/settings.scss
index 3062b9f51f3..3b6befc4386 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 0ebe1ebb23a..61c40e789ba 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 dd253b82643..08aee8b5b76 100644
--- a/settings/templates/settings/admin/overview.php
+++ b/settings/templates/settings/admin/overview.php
@@ -155,7 +155,10 @@
<span class="icon icon-checkmark-white"></span><span class="message"><?php p($l->t('All checks passed.'));?></span>
</div>
<div id="security-warning-state-failure" class="hidden">
- <span class="icon icon-close-white"></span><span class="message"><?php p($l->t('Some checks have failed.'));?></span>
+ <span class="icon icon-close-white"></span><span class="message"><?php p($l->t('There are some errors regarding your setup.'));?></span>
+ </div>
+ <div id="security-warning-state-warning" class="hidden">
+ <span class="icon icon-error-white"></span><span class="message"><?php p($l->t('There are some warnings regarding your setup.'));?></span>
</div>
<div id="security-warning-state-loading">
<span class="icon loading"></span><span class="message"><?php p($l->t('Checking for system and security issues.'));?></span>