diff --git a/assets/components/actors/actor.vue b/assets/components/actors/actor.vue
index 45186f98..c60a1b4b 100644
--- a/assets/components/actors/actor.vue
+++ b/assets/components/actors/actor.vue
@@ -35,14 +35,14 @@
/>
0;
-}
-
function sfw() {
return this.$store.state.ui.sfw;
}
@@ -477,10 +482,10 @@ export default {
pageTitle: null,
bioExpanded: false,
photosExpanded: false,
+ stashed: false,
};
},
computed: {
- isStashed,
me,
sfw,
showAlbum,
diff --git a/assets/components/releases/release.vue b/assets/components/releases/release.vue
index 28ad1fc0..3ab5dba1 100644
--- a/assets/components/releases/release.vue
+++ b/assets/components/releases/release.vue
@@ -52,14 +52,14 @@
({
}
extend type Actor {
+ isStashed: Boolean @requires(columns: ["stashesActors"])
ageFromBirth: Int @requires(columns: ["dateOfBirth"])
ageAtDeath: Int @requires(columns: ["dateOfBirth", "dateOfDeath"])
height(units:Units): String @requires(columns: ["height"])
@@ -22,6 +23,13 @@ const schemaExtender = makeExtendSchemaPlugin(_build => ({
`,
resolvers: {
Actor: {
+ isStashed(parent) {
+ if (!parent['@stashes']) {
+ return null;
+ }
+
+ return parent['@stashes'].length > 0;
+ },
ageFromBirth(parent, _args, _context, _info) {
if (!parent.dateOfBirth) return null;