Restored rudimentary tag filtering.

This commit is contained in:
2020-01-30 23:41:10 +01:00
parent eb9bc4677e
commit 42f227c39d
5 changed files with 36 additions and 1 deletions

View File

@@ -53,6 +53,7 @@ function initActorActions(store, _router) {
$after:Date = "1900-01-01",
$before:Date = "2100-01-01",
$orderBy:[ReleasesActorsOrderBy!]
$exclude: [String!]
) {
actor: actorBySlug(slug: $actorSlug) {
id
@@ -119,6 +120,15 @@ function initActorActions(store, _router) {
date: {
lessThan: $before,
greaterThan: $after,
},
releasesTags: {
none: {
tag: {
slug: {
in: $exclude
}
}
}
}
}
},
@@ -155,6 +165,7 @@ function initActorActions(store, _router) {
after: store.getters.after,
before: store.getters.before,
orderBy: store.state.ui.range === 'upcoming' ? 'RELEASE_BY_RELEASE_ID__DATE_ASC' : 'RELEASE_BY_RELEASE_ID__DATE_DESC',
exclude: store.state.ui.filter,
});
return curateActor(actor);