SEBSERV-391

This commit is contained in:
anhefti 2023-03-09 08:38:33 +01:00
parent b17cab29f9
commit 5f35bfb419

View file

@ -645,13 +645,12 @@ public class ResourceService {
return monitoringEntry -> { return monitoringEntry -> {
final ConnectionStatus status = monitoringEntry.getStatus(); final ConnectionStatus status = monitoringEntry.getStatus();
if (status.establishedStatus) { if (status.connectingStatus || status.establishedStatus) {
if (monitoringEntry.hasMissingPing()) { if (monitoringEntry.hasMissingPing()) {
return missingPing; return missingPing;
} }
if (!monitoringEntry.grantChecked()) { if (!monitoringEntry.grantChecked()) {
if (monitoringEntry.showNoGrantCheckApplied()) { if (monitoringEntry.showNoGrantCheckApplied()) {
return localizedNames.get(status) + grantMissingText; return localizedNames.get(status) + grantMissingText;
} }
} else if (monitoringEntry.grantDenied()) { } else if (monitoringEntry.grantDenied()) {