mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-20 23:19:38 +00:00
Added env option for setting dark mode default
Also allowed config-centralised default user settings for this change and bought existing user-level view options into that default settings system to be cleaner in code usage. For #2081
This commit is contained in:
parent
af032f8993
commit
b0f4500c34
11 changed files with 40 additions and 19 deletions
app/Http/Controllers
|
@ -30,7 +30,7 @@ class BookController extends Controller
|
|||
*/
|
||||
public function index()
|
||||
{
|
||||
$view = setting()->getForCurrentUser('books_view_type', config('app.views.books'));
|
||||
$view = setting()->getForCurrentUser('books_view_type');
|
||||
$sort = setting()->getForCurrentUser('books_sort', 'name');
|
||||
$order = setting()->getForCurrentUser('books_sort_order', 'asc');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue