Remove "Please specify a filter" barrier

fixes #77
This commit is contained in:
Alexander A. Klimov 2017-11-07 11:51:24 +01:00
parent 1f0fb9d760
commit 2c6cd09fa2
2 changed files with 2 additions and 6 deletions

View file

@ -21,9 +21,7 @@ if (! $compact): ?>
<?php endif ?>
<div class="content">
<?php
if ($filterEditor->getFilter()->isEmpty()) {
echo '<p>' . $this->escape($this->translate('Please specify a filter')) . '</p>';
} elseif ($hosts->hasResult()) {
if ($hosts->hasResult()) {
foreach ($hosts->peekAhead($compact) as $host) {
echo '<div class="graphs-host">';

View file

@ -21,9 +21,7 @@ if (! $compact): ?>
<?php endif ?>
<div class="content">
<?php
if ($filterEditor->getFilter()->isEmpty()) {
echo '<p>' . $this->escape($this->translate('Please specify a filter')) . '</p>';
} elseif ($services->hasResult()) {
if ($services->hasResult()) {
foreach ($services->peekAhead($compact) as $service) {
if (! $compact) {
echo '<h2>'