Extended revision pagination to scene and actor pages, fixes 'revisions' label without count.
This commit is contained in:
@@ -10,13 +10,15 @@ export async function onBeforeRender(pageContext) {
|
||||
|
||||
const {
|
||||
revisions,
|
||||
total: revisionTotal,
|
||||
actors,
|
||||
tags,
|
||||
movies,
|
||||
} = await fetchSceneRevisions(null, {
|
||||
sceneId: scene.id,
|
||||
isFinalized: true,
|
||||
limit: 100,
|
||||
limit: Number(pageContext.urlParsed.search.limit) || 100,
|
||||
page: Number(pageContext.routeParams.page) || 1,
|
||||
}, pageContext.user);
|
||||
|
||||
return {
|
||||
@@ -25,6 +27,7 @@ export async function onBeforeRender(pageContext) {
|
||||
pageProps: {
|
||||
scene,
|
||||
revisions,
|
||||
revisionTotal,
|
||||
actors,
|
||||
tags,
|
||||
movies,
|
||||
|
||||
Reference in New Issue
Block a user