Fixed edit search input not clearing, added more post-edit navigation links.

This commit is contained in:
DebaucheryLibrarian 2024-10-09 00:09:45 +02:00
parent 47d3e50a6d
commit 19828d5ed1
4 changed files with 19 additions and 5 deletions

View File

@ -22,7 +22,7 @@
:key="`actor-${actor.slug}`" :key="`actor-${actor.slug}`"
v-close-popper v-close-popper
class="actor" class="actor"
@click="emit('actor', actor)" @click="emit('actor', actor); query = '';"
>{{ actor.name }} ({{ [actor.ageFromBirth, actor.origin?.country?.alpha2].filter(Boolean).join(', ') }}) >{{ actor.name }} ({{ [actor.ageFromBirth, actor.origin?.country?.alpha2].filter(Boolean).join(', ') }})
<img <img
v-if="actor.avatar" v-if="actor.avatar"

View File

@ -22,7 +22,7 @@
:key="`movie-${movie.id}`" :key="`movie-${movie.id}`"
v-close-popper v-close-popper
class="movie" class="movie"
@click="emit('movie', movie)" @click="emit('movie', movie); query = '';"
>{{ movie.title }} ({{ [format(movie.effectiveDate, 'yyyy')].filter(Boolean).join(', ') }}) >{{ movie.title }} ({{ [format(movie.effectiveDate, 'yyyy')].filter(Boolean).join(', ') }})
<img <img
v-if="movie.covers.length > 0" v-if="movie.covers.length > 0"

View File

@ -22,7 +22,7 @@
:key="`tag-${tag.slug}`" :key="`tag-${tag.slug}`"
v-close-popper v-close-popper
class="tag" class="tag"
@click="emit('tag', tag)" @click="emit('tag', tag); query = '';"
>{{ tag.name }}</li> >{{ tag.name }}</li>
</ul> </ul>
</div> </div>

View File

@ -24,9 +24,23 @@
<li> <li>
<a <a
:href="`/user/${user.username}`" :href="`/scene/revisions/${scene.id}/${scene.slug}`"
class="link" class="link"
>Go to profile</a> >Go to scene revisions</a>
</li>
<li>
<a
:href="`/user/${user.username}/revisions`"
class="link"
>Go to user revisions</a>
</li>
<li v-if="user.role !== 'user'">
<a
href="/admin/revisions"
class="link"
>Go to revisions admin</a>
</li> </li>
</ul> </ul>
</p> </p>