forked from DebaucheryLibrarian/traxxx
Added heart button to actor tiles.
This commit is contained in:
@@ -2,10 +2,16 @@ import config from 'config';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
import { graphql, get } from '../api';
|
||||
import { releaseFields, getIncludedEntities, getIncludedActors } from '../fragments';
|
||||
import { curateActor, curateRelease } from '../curate';
|
||||
import getDateRange from '../get-date-range';
|
||||
|
||||
import {
|
||||
releaseFields,
|
||||
actorStashesFields,
|
||||
getIncludedEntities,
|
||||
getIncludedActors,
|
||||
} from '../fragments';
|
||||
|
||||
function initActorActions(store, router) {
|
||||
async function fetchActorById({ _commit }, {
|
||||
actorId,
|
||||
@@ -246,23 +252,7 @@ function initActorActions(store, router) {
|
||||
}
|
||||
totalCount
|
||||
}
|
||||
isStashed
|
||||
stashes: stashesActors(
|
||||
filter: {
|
||||
stash: {
|
||||
userId: {
|
||||
equalTo: $userId
|
||||
}
|
||||
}
|
||||
}
|
||||
) @include(if: $hasAuth) {
|
||||
stash {
|
||||
id
|
||||
name
|
||||
slug
|
||||
primary
|
||||
}
|
||||
}
|
||||
${actorStashesFields}
|
||||
}
|
||||
}
|
||||
`, {
|
||||
@@ -346,6 +336,8 @@ function initActorActions(store, router) {
|
||||
$offset: Int = 0,
|
||||
$letter: String! = "",
|
||||
$naturalBoobs: Boolean,
|
||||
$userId: Int,
|
||||
$hasAuth: Boolean!,
|
||||
) {
|
||||
connection: actorsConnection(
|
||||
first: $limit,
|
||||
@@ -413,6 +405,7 @@ function initActorActions(store, router) {
|
||||
name
|
||||
alias
|
||||
}
|
||||
${actorStashesFields}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -421,6 +414,8 @@ function initActorActions(store, router) {
|
||||
limit,
|
||||
letter,
|
||||
naturalBoobs,
|
||||
hasAuth: !!store.state.auth.user,
|
||||
userId: store.state.auth.user?.id,
|
||||
});
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user