Added stash menu with remove and rename.
This commit is contained in:
@@ -8,15 +8,15 @@
|
||||
>
|
||||
<div class="poster-container">
|
||||
<Link
|
||||
:href="`/scene/${scene.id}/${scene.slug}`"
|
||||
:href="`/scene/${scene.id}/${scene.slug || ''}`"
|
||||
:title="scene.title"
|
||||
target="_blank"
|
||||
class="poster"
|
||||
>
|
||||
<img
|
||||
v-if="scene.poster"
|
||||
:src="scene.poster.isS3 ? `https://cdndev.traxxx.me/${scene.poster.thumbnail}` : `/media/${scene.poster.thumbnail}`"
|
||||
:style="{ 'background-image': scene.poster.isS3 ? `url(https://cdndev.traxxx.me/${scene.poster.lazy})` : `url(/media/${scene.poster.lazy})` }"
|
||||
:src="getPath(scene.poster, 'thumbnail')"
|
||||
:style="{ 'background-image': `url(${getPath(scene.poster, 'lazy')})` }"
|
||||
loading="lazy"
|
||||
class="thumbnail"
|
||||
>
|
||||
@@ -73,7 +73,7 @@
|
||||
</div>
|
||||
|
||||
<Link
|
||||
:href="`/scene/${scene.id}/${scene.slug}`"
|
||||
:href="`/scene/${scene.id}/${scene.slug || ''}`"
|
||||
:title="scene.title"
|
||||
target="_blank"
|
||||
class="row title nolink"
|
||||
@@ -119,6 +119,7 @@ import { format } from 'date-fns';
|
||||
|
||||
import { post, del } from '#/src/api.js';
|
||||
import events from '#/src/events.js';
|
||||
import getPath from '#/src/get-path.js';
|
||||
import ellipsis from '#/utils/ellipsis.js';
|
||||
|
||||
import Icon from '../icon/icon.vue';
|
||||
@@ -134,7 +135,7 @@ const pageContext = inject('pageContext');
|
||||
const user = pageContext.user;
|
||||
const pageStash = pageContext.pageProps.stash;
|
||||
|
||||
const favorited = ref(props.scene.stashes.some((sceneStash) => sceneStash.primary));
|
||||
const favorited = ref(props.scene.stashes.some((sceneStash) => sceneStash.isPrimary));
|
||||
const fbCutoff = 20;
|
||||
|
||||
async function stash() {
|
||||
|
||||
Reference in New Issue
Block a user