Improved sidebar design, added sfw and theme toggles.

This commit is contained in:
DebaucheryLibrarian
2020-07-15 00:15:00 +02:00
parent cb51a2a81b
commit eca54c2a09
35 changed files with 294 additions and 122 deletions

View File

@@ -262,9 +262,9 @@ function initActorActions(store, router) {
letter,
gender,
}) {
const genderFilter = gender === null
? 'isNull: true'
: `equalTo: "${gender}"`;
const genderFilter = (gender === null && 'gender: { isNull: true }')
|| (gender === 'all' && ' ')
|| `gender: { equalTo: "${gender}" }`;
const { connection: { actors, totalCount } } = await graphql(`
query Actors(
@@ -283,9 +283,7 @@ function initActorActions(store, router) {
name: {
startsWith: $letter
}
gender: {
${genderFilter}
}
${genderFilter}
}
) {
totalCount