Replaced batch ranges with 'New' sorting.

This commit is contained in:
2020-04-16 22:23:25 +02:00
parent e3dfaf4440
commit 3b2bf921f3
16 changed files with 126 additions and 44 deletions

View File

@@ -9,7 +9,6 @@ function initReleasesActions(store, _router) {
$limit:Int = 1000,
$after:Date = "1900-01-01",
$before:Date = "2100-01-01",
$isNew:[Boolean!] = [true,false]
$orderBy:[ReleasesOrderBy!],
$exclude: [String!]
) {
@@ -19,8 +18,7 @@ function initReleasesActions(store, _router) {
limit,
after: store.getters.after,
before: store.getters.before,
isNew: store.getters.isNew,
orderBy: store.state.ui.range === 'upcoming' ? 'DATE_ASC' : 'DATE_DESC',
orderBy: store.getters.orderBy,
exclude: store.state.ui.filter,
});