Compare commits

..

No commits in common. "ccf6c26789213e8f30af65fb07bb5ab655767414" and "ad635d4192f97a54e4876d105e91897d15dc9185" have entirely different histories.

6 changed files with 10 additions and 10 deletions

View File

@ -2,7 +2,7 @@
<div
class="tile"
:class="{
unstashed: !favorited && pageStash && user && pageStash.user.id === user?.id,
unstashed: !favorited && pageStash && user && pageStash.user.id === user.id,
}"
>
<span class="name">{{ actor.name }}</span>
@ -88,7 +88,7 @@ const props = defineProps({
const pageContext = inject('pageContext');
const { user } = pageContext;
const pageStash = pageContext.pageProps.stash;
const currentStash = pageStash || user?.primaryStash;
const currentStash = pageStash || user.primaryStash;
const favorited = ref(props.actor.stashes.some((actorStash) => actorStash.id === currentStash.id));
</script>

View File

@ -2,7 +2,7 @@
<div
class="movie-tile"
:class="{
unstashed: !favorited && pageStash && user && pageStash.user.id === user?.id,
unstashed: !favorited && pageStash && user && pageStash.user.id === user.id,
}"
>
<div
@ -120,7 +120,7 @@ const props = defineProps({
const pageContext = inject('pageContext');
const user = pageContext.user;
const pageStash = pageContext.pageProps.stash;
const currentStash = pageStash || user?.primaryStash;
const currentStash = pageStash || user.primaryStash;
const currentYear = new Date().getFullYear();

View File

@ -2,7 +2,7 @@
<div
class="tile"
:class="{
unstashed: !favorited && pageStash && user && pageStash.user.id === user?.id,
unstashed: !favorited && pageStash && user && pageStash.user.id === user.id,
'is-new': scene.isNew,
}"
>
@ -126,7 +126,7 @@ const props = defineProps({
const pageContext = inject('pageContext');
const user = pageContext.user;
const pageStash = pageContext.pageProps.stash;
const currentStash = pageStash || user?.primaryStash;
const currentStash = pageStash || user.primaryStash;
const favorited = ref(props.scene.stashes.some((sceneStash) => sceneStash.id === currentStash.id));
</script>

View File

@ -71,7 +71,7 @@ const props = defineProps({
const emit = defineEmits(['stashed', 'unstashed']);
const { user, pageProps } = inject('pageContext');
const currentStash = pageProps.stash || user?.primaryStash;
const currentStash = pageProps.stash || user.primaryStash;
const itemStashes = ref(props.item.stashes);

4
package-lock.json generated
View File

@ -1,11 +1,11 @@
{
"name": "traxxx-web",
"version": "0.17.2",
"version": "0.17.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"version": "0.17.2",
"version": "0.17.1",
"dependencies": {
"@brillout/json-serializer": "^0.5.8",
"@dicebear/collection": "^7.0.5",

View File

@ -72,5 +72,5 @@
"postcss-custom-media": "^10.0.2",
"postcss-nesting": "^12.0.2"
},
"version": "0.17.2"
"version": "0.17.1"
}