mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-28 17:02:04 +03:00
Added testing coverage for tag index
Also: - Extracted out index table row to its own view. - Added empty state. - Ensured query params are set on pagination links.
This commit is contained in:
@ -26,7 +26,11 @@ class TagController extends Controller
|
||||
$nameFilter = $request->get('name', '');
|
||||
$tags = $this->tagRepo
|
||||
->queryWithTotals($search, $nameFilter)
|
||||
->paginate(20);
|
||||
->paginate(50)
|
||||
->appends(array_filter([
|
||||
'search' => $search,
|
||||
'name' => $nameFilter
|
||||
]));
|
||||
|
||||
return view('tags.index', [
|
||||
'tags' => $tags,
|
||||
|
Reference in New Issue
Block a user