Add warning state to setup checks
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
6afe3e42f3
commit
5a20ac7df2
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue