Added heart button to actor tiles.

This commit is contained in:
DebaucheryLibrarian
2021-03-24 01:52:27 +01:00
parent e12de5ec00
commit 093d447328
4 changed files with 108 additions and 19 deletions

View File

@@ -40,6 +40,27 @@ const sitesFragment = `
}
`;
const actorStashesFields = `
isStashed
isFavorited
stashes: stashesActors(
filter: {
stash: {
userId: {
equalTo: $userId
}
}
}
) @include(if: $hasAuth) {
stash {
id
name
slug
primary
}
}
`;
const actorFields = `
id
name
@@ -72,6 +93,7 @@ const actorFields = `
name
alias
}
${actorStashesFields}
`;
const releaseActorsFragment = `
@@ -455,6 +477,7 @@ function getIncludedActors(router) {
}
export {
actorStashesFields,
releaseActorsFragment,
releaseFields,
releaseTagsFragment,