diff --git a/app/Http/Controllers/App/SearchController.php b/app/Http/Controllers/App/SearchController.php index a924daaf..86c84059 100644 --- a/app/Http/Controllers/App/SearchController.php +++ b/app/Http/Controllers/App/SearchController.php @@ -32,6 +32,7 @@ public function getSearch(): View 'only_lists' => '', 'only_tags' => '', 'order_by' => $this->orderByOptions[0], + 'performed_search' => false, ]); } @@ -60,6 +61,7 @@ public function doSearch(SearchRequest $request): View 'empty_tags' => $this->emptyTags, 'empty_lists' => $this->emptyLists, 'order_by' => $this->searchOrderBy, + 'performed_search' => true, ]); } } diff --git a/resources/views/app/search/search.blade.php b/resources/views/app/search/search.blade.php index b422df93..da8f01b2 100644 --- a/resources/views/app/search/search.blade.php +++ b/resources/views/app/search/search.blade.php @@ -132,9 +132,11 @@ class="form-check-input"
@if($results->isEmpty()) -
- @lang('search.no_results') -
+ @if($query_settings['performed_search']) +
+ @lang('search.no_results') +
+ @endif @else @include('app.search.partials.table', ['results' => $results]) @endif