Added sections and pagination to stash page.
This commit is contained in:
@@ -72,6 +72,8 @@ function initReleasesActions(store, router) {
|
||||
query Movies(
|
||||
$limit:Int = 1000,
|
||||
$offset:Int = 0,
|
||||
$hasAuth: Boolean!
|
||||
$userId: Int
|
||||
) {
|
||||
connection: moviesConnection(
|
||||
first: $limit
|
||||
@@ -90,6 +92,8 @@ function initReleasesActions(store, router) {
|
||||
}
|
||||
}
|
||||
`, {
|
||||
hasAuth: !!store.state.auth.user,
|
||||
userId: store.state.auth.user?.id,
|
||||
limit,
|
||||
offset: Math.max(0, (pageNumber - 1)) * limit,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user