Restored 'new' label client-side.
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
actorStashesFields,
|
||||
getIncludedEntities,
|
||||
getIncludedActors,
|
||||
batchFragment,
|
||||
} from '../fragments';
|
||||
|
||||
function initActorActions(store, router) {
|
||||
@@ -27,7 +28,7 @@ function initActorActions(store, router) {
|
||||
const includedTags = router.currentRoute.value.query.tags ? router.currentRoute.value.query.tags.split(',') : [];
|
||||
const mode = router.currentRoute.value.query.mode || 'all';
|
||||
|
||||
const { actor } = await graphql(`
|
||||
const { actor, batches: [lastBatch] } = await graphql(`
|
||||
query Actor(
|
||||
$actorId: Int!
|
||||
$userId: Int,
|
||||
@@ -254,6 +255,7 @@ function initActorActions(store, router) {
|
||||
}
|
||||
${actorStashesFields}
|
||||
}
|
||||
${batchFragment}
|
||||
}
|
||||
`, {
|
||||
actorId,
|
||||
@@ -281,7 +283,7 @@ function initActorActions(store, router) {
|
||||
|
||||
return {
|
||||
actor: curateActor(actor, null, curateRelease),
|
||||
releases: actor.scenesConnection.releases.map((release) => curateRelease(release)),
|
||||
releases: actor.scenesConnection.releases.map((release) => curateRelease(release, 'scene', { lastBatch: lastBatch.id })),
|
||||
totalCount: actor.scenesConnection.totalCount,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user