Compare commits
2 Commits
ad635d4192
...
ccf6c26789
Author | SHA1 | Date |
---|---|---|
|
ccf6c26789 | |
|
b5b3ad57bf |
|
@ -2,7 +2,7 @@
|
||||||
<div
|
<div
|
||||||
class="tile"
|
class="tile"
|
||||||
:class="{
|
: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>
|
<span class="name">{{ actor.name }}</span>
|
||||||
|
@ -88,7 +88,7 @@ const props = defineProps({
|
||||||
const pageContext = inject('pageContext');
|
const pageContext = inject('pageContext');
|
||||||
const { user } = pageContext;
|
const { user } = pageContext;
|
||||||
const pageStash = pageContext.pageProps.stash;
|
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));
|
const favorited = ref(props.actor.stashes.some((actorStash) => actorStash.id === currentStash.id));
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div
|
<div
|
||||||
class="movie-tile"
|
class="movie-tile"
|
||||||
:class="{
|
:class="{
|
||||||
unstashed: !favorited && pageStash && user && pageStash.user.id === user.id,
|
unstashed: !favorited && pageStash && user && pageStash.user.id === user?.id,
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
@ -120,7 +120,7 @@ const props = defineProps({
|
||||||
const pageContext = inject('pageContext');
|
const pageContext = inject('pageContext');
|
||||||
const user = pageContext.user;
|
const user = pageContext.user;
|
||||||
const pageStash = pageContext.pageProps.stash;
|
const pageStash = pageContext.pageProps.stash;
|
||||||
const currentStash = pageStash || user.primaryStash;
|
const currentStash = pageStash || user?.primaryStash;
|
||||||
|
|
||||||
const currentYear = new Date().getFullYear();
|
const currentYear = new Date().getFullYear();
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div
|
<div
|
||||||
class="tile"
|
class="tile"
|
||||||
:class="{
|
:class="{
|
||||||
unstashed: !favorited && pageStash && user && pageStash.user.id === user.id,
|
unstashed: !favorited && pageStash && user && pageStash.user.id === user?.id,
|
||||||
'is-new': scene.isNew,
|
'is-new': scene.isNew,
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
|
@ -126,7 +126,7 @@ const props = defineProps({
|
||||||
const pageContext = inject('pageContext');
|
const pageContext = inject('pageContext');
|
||||||
const user = pageContext.user;
|
const user = pageContext.user;
|
||||||
const pageStash = pageContext.pageProps.stash;
|
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));
|
const favorited = ref(props.scene.stashes.some((sceneStash) => sceneStash.id === currentStash.id));
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -71,7 +71,7 @@ const props = defineProps({
|
||||||
const emit = defineEmits(['stashed', 'unstashed']);
|
const emit = defineEmits(['stashed', 'unstashed']);
|
||||||
|
|
||||||
const { user, pageProps } = inject('pageContext');
|
const { user, pageProps } = inject('pageContext');
|
||||||
const currentStash = pageProps.stash || user.primaryStash;
|
const currentStash = pageProps.stash || user?.primaryStash;
|
||||||
|
|
||||||
const itemStashes = ref(props.item.stashes);
|
const itemStashes = ref(props.item.stashes);
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"name": "traxxx-web",
|
"name": "traxxx-web",
|
||||||
"version": "0.17.1",
|
"version": "0.17.2",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"version": "0.17.1",
|
"version": "0.17.2",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@brillout/json-serializer": "^0.5.8",
|
"@brillout/json-serializer": "^0.5.8",
|
||||||
"@dicebear/collection": "^7.0.5",
|
"@dicebear/collection": "^7.0.5",
|
||||||
|
|
|
@ -72,5 +72,5 @@
|
||||||
"postcss-custom-media": "^10.0.2",
|
"postcss-custom-media": "^10.0.2",
|
||||||
"postcss-nesting": "^12.0.2"
|
"postcss-nesting": "^12.0.2"
|
||||||
},
|
},
|
||||||
"version": "0.17.1"
|
"version": "0.17.2"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue