Add warning state to setup checks

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-06-06 13:28:50 +02:00 committed by Morris Jobke
parent 6afe3e42f3
commit 5a20ac7df2
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
3 changed files with 13 additions and 2 deletions

View File

@ -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;
}

View File

@ -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) {

View File

@ -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>