Restored rudimentary tag filter for tag view.
This commit is contained in:
parent
6ca3ad4c63
commit
b3f3455237
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue