mirror of
https://github.com/Kovah/LinkAce.git
synced 2025-01-17 21:28:30 +01:00
Merge pull request #618 from chrissawyerfan4/search-nonoresults
Don't show "no results" when no search was performed
This commit is contained in:
commit
0249392b9a
@ -32,6 +32,7 @@ class SearchController extends Controller
|
|||||||
'only_lists' => '',
|
'only_lists' => '',
|
||||||
'only_tags' => '',
|
'only_tags' => '',
|
||||||
'order_by' => $this->orderByOptions[0],
|
'order_by' => $this->orderByOptions[0],
|
||||||
|
'performed_search' => false,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,6 +61,7 @@ class SearchController extends Controller
|
|||||||
'empty_tags' => $this->emptyTags,
|
'empty_tags' => $this->emptyTags,
|
||||||
'empty_lists' => $this->emptyLists,
|
'empty_lists' => $this->emptyLists,
|
||||||
'order_by' => $this->searchOrderBy,
|
'order_by' => $this->searchOrderBy,
|
||||||
|
'performed_search' => true,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -132,9 +132,11 @@
|
|||||||
<div class="card-table mt-4">
|
<div class="card-table mt-4">
|
||||||
|
|
||||||
@if($results->isEmpty())
|
@if($results->isEmpty())
|
||||||
<div class="alert alert-info m-3">
|
@if($query_settings['performed_search'])
|
||||||
@lang('search.no_results')
|
<div class="alert alert-info m-3">
|
||||||
</div>
|
@lang('search.no_results')
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
@else
|
@else
|
||||||
@include('app.search.partials.table', ['results' => $results])
|
@include('app.search.partials.table', ['results' => $results])
|
||||||
@endif
|
@endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user