summaryrefslogtreecommitdiffstats
path: root/settings/js/admin.js
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-06-06 13:28:50 +0200
committerMorris Jobke <hey@morrisjobke.de>2018-06-06 17:34:38 +0200
commit5a20ac7df2e3e6ca4c7f43b66afd87c7c6493c5a (patch)
tree7ff68f82997574fd2885e19cc8e09a01f1c0e77f /settings/js/admin.js
parent6afe3e42f3601f4be65724c6c06951f1a4726fed (diff)
downloadnextcloud-server-5a20ac7df2e3e6ca4c7f43b66afd87c7c6493c5a.tar.gz
nextcloud-server-5a20ac7df2e3e6ca4c7f43b66afd87c7c6493c5a.zip
Add warning state to setup checks
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'settings/js/admin.js')
-rw-r--r--settings/js/admin.js6
1 files changed, 5 insertions, 1 deletions
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) {