Linked stash tile header to largest stash.

This commit is contained in:
DebaucheryLibrarian 2025-11-21 04:40:10 +01:00
parent 47a748c623
commit 117923ff1d
2 changed files with 10 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<div class="stash">
<div class="stash-header">
<a
:href="`/stash/${profile.username}/${stash.slug}`"
:href="`/stash/${profile.username}/${stash.slug}/${primaryDomain}`"
class="stash-name ellipsis nolink"
>
<span class="ellipsis">{{ stash.name }}</span>
@ -151,6 +151,14 @@ const stashNameInput = ref(null);
const showRenameDialog = ref(false);
const done = ref(true);
const domainCounts = {
scenes: props.stash.stashedScenes,
actors: props.stash.stashedActors,
movies: props.stash.stashedMovies,
};
const primaryDomain = Object.entries(domainCounts).toSorted((domainA, domainB) => domainB[1] - domainA[1])[0][0];
async function setPublic(isPublic) {
if (done.value === false) {
return;

2
static

@ -1 +1 @@
Subproject commit 7a1984e194a90987e906dabbec26ada28a400a3c
Subproject commit 390681c7b13ebf2701757804a09a788f2ad9f712