Defaulting actors view to 'all'.

This commit is contained in:
DebaucheryLibrarian 2020-08-02 03:51:52 +02:00
parent b4f0501765
commit 7bfa5a6cc4
2 changed files with 9 additions and 9 deletions

View File

@ -2,6 +2,13 @@
<div class="actors"> <div class="actors">
<nav class="filter"> <nav class="filter">
<ul class="genders nolist"> <ul class="genders nolist">
<li class="gender">
<router-link
:to="{ name: 'actors', params: { gender: 'all', letter, pageNumber: 1 } }"
:class="{ selected: gender === 'all' }"
class="gender-link all"
>all</router-link>
</li>
<li class="gender"> <li class="gender">
<router-link <router-link
:to="{ name: 'actors', params: { gender: 'female', letter, pageNumber: 1 } }" :to="{ name: 'actors', params: { gender: 'female', letter, pageNumber: 1 } }"
@ -33,13 +40,6 @@
replace replace
><Icon icon="question5" /></router-link> ><Icon icon="question5" /></router-link>
</li> </li>
<li class="gender">
<router-link
:to="{ name: 'actors', params: { gender: 'all', letter, pageNumber: 1 } }"
:class="{ selected: gender === 'all' }"
class="gender-link all"
>all</router-link>
</li>
</ul> </ul>
<ul class="letters nolist"> <ul class="letters nolist">
@ -107,7 +107,7 @@ function letter() {
} }
function gender() { function gender() {
return this.$route.params.gender || 'female'; return this.$route.params.gender || 'all';
} }
async function route() { async function route() {

View File

@ -138,7 +138,7 @@ const routes = [
name: 'actors', name: 'actors',
params: { params: {
...from.params, ...from.params,
gender: 'female', gender: 'all',
letter: 'all', letter: 'all',
tags: 'all', tags: 'all',
range: 'latest', range: 'latest',