Updated view-change endpoints to be clearer, separated books and shelf

- Separated books-list and shelf-show view types to be saved separately.

During review of #1755
This commit is contained in:
Dan Brown
2020-04-10 12:49:16 +01:00
parent b8c16b15a9
commit 053cbbd5b6
9 changed files with 54 additions and 61 deletions

View File

@ -43,7 +43,7 @@
</a>
@endif
@include('partials.view-toggle', ['view' => $view, 'type' => 'book'])
@include('partials.view-toggle', ['view' => $view, 'type' => 'books'])
</div>
</div>

View File

@ -12,7 +12,7 @@
<div class="actions mb-xl">
<h5>{{ trans('common.actions') }}</h5>
<div class="icon-list text-primary">
@include('partials.view-toggle', ['view' => $view, 'type' => 'book'])
@include('partials.view-toggle', ['view' => $view, 'type' => 'books'])
@include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
</div>
</div>

View File

@ -12,7 +12,7 @@
<div class="actions mb-xl">
<h5>{{ trans('common.actions') }}</h5>
<div class="icon-list text-primary">
@include('partials.view-toggle', ['view' => $view, 'type' => 'shelf'])
@include('partials.view-toggle', ['view' => $view, 'type' => 'shelves'])
@include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
</div>
</div>

View File

@ -15,7 +15,7 @@
<span>{{ trans('entities.shelves_new_action') }}</span>
</a>
@endif
@include('partials.view-toggle', ['view' => $view, 'type' => 'shelf'])
@include('partials.view-toggle', ['view' => $view, 'type' => 'shelves'])
</div>
</div>

View File

@ -95,7 +95,7 @@
</a>
@endif
@include('partials.view-toggle', ['view' => $view, 'type' => 'book'])
@include('partials.view-toggle', ['view' => $view, 'type' => 'shelf'])
<hr class="primary-background">