From 105972b3d4dca5e5b5b74e3183cf46de147b5d06 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Wed, 27 Mar 2024 03:05:32 +0100 Subject: [PATCH] Using different icon and fixed unstash fade in secondary stashes. --- components/actors/tile.vue | 9 +++++---- components/movies/tile.vue | 11 +++++++---- components/scenes/tile.vue | 9 +++++---- components/stashes/heart.vue | 13 +++++++------ 4 files changed, 24 insertions(+), 18 deletions(-) diff --git a/components/actors/tile.vue b/components/actors/tile.vue index ff09e03..ecd6d1a 100644 --- a/components/actors/tile.vue +++ b/components/actors/tile.vue @@ -2,7 +2,7 @@
{{ actor.name }} @@ -33,8 +33,8 @@ :item="actor" :show-secondary="false" class="light tiled" - @stashed="(stash) => { favorited = stash.isPrimary ? true : favorited; }" - @unstashed="(stash) => { favorited = stash.isPrimary ? false : favorited; }" + @stashed="(stash) => { favorited = stash.id === currentStash.id ? true : favorited; }" + @unstashed="(stash) => { favorited = stash.id === currentStash.id ? false : favorited; }" />
@@ -88,8 +88,9 @@ const props = defineProps({ const pageContext = inject('pageContext'); const { user } = pageContext; const pageStash = pageContext.pageProps.stash; +const currentStash = pageStash || user.primaryStash; -const favorited = ref(props.actor.stashes?.some((sceneStash) => sceneStash.isPrimary) || false); +const favorited = ref(props.actor.stashes.some((actorStash) => actorStash.id === currentStash.id));