Restored rudimentary tag filter for tag view.

This commit is contained in:
ThePendulum 2020-01-30 23:44:18 +01:00
parent 6ca3ad4c63
commit b3f3455237
1 changed files with 12 additions and 1 deletions

View File

@ -12,7 +12,8 @@ function initTagsActions(store, _router) {
$limit:Int = 1000,
$after:Date = "1900-01-01",
$before:Date = "2100-01-01",
$orderBy: [ReleasesTagsOrderBy!]
$orderBy: [ReleasesTagsOrderBy!],
$exclude: [String!]
) {
tagBySlug(slug:$tagSlug) {
id
@ -45,6 +46,15 @@ function initTagsActions(store, _router) {
date: {
lessThan: $before,
greaterThan: $after,
},
releasesTags: {
none: {
tag: {
slug: {
in: $exclude
}
}
}
}
}
},
@ -63,6 +73,7 @@ function initTagsActions(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 curateTag(tagBySlug);