1
0
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:
Dan Brown
2021-11-06 21:54:02 +00:00
parent f8f9e74992
commit 899349c4b4
6 changed files with 172 additions and 47 deletions

View File

@ -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,