Compare commits
2
Commits
c2d8cc3a40
...
a774254e71
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a774254e71 | ||
|
|
0a665ab553 |
@@ -41,8 +41,6 @@ const itemAlerts = ref(props.item.alerts);
|
||||
const itemAlerted = ref(props.item.alerts?.only.length > 0);
|
||||
const hasSecondaryStash = computed(() => itemStashes.value.some((itemStash) => !itemStash.isPrimary));
|
||||
|
||||
// console.log(props.item);
|
||||
|
||||
const done = ref(true);
|
||||
const stashMenuDropdownId = useId();
|
||||
const stashTogglesDropdownId = useId();
|
||||
|
||||
Generated
+2
-2
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "traxxx-web",
|
||||
"version": "0.57.8",
|
||||
"version": "0.57.9",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"version": "0.57.8",
|
||||
"version": "0.57.9",
|
||||
"dependencies": {
|
||||
"@brillout/json-serializer": "^0.5.25",
|
||||
"@dicebear/collection": "7.0.5",
|
||||
|
||||
+1
-1
@@ -92,7 +92,7 @@
|
||||
"overrides": {
|
||||
"vite": "$vite"
|
||||
},
|
||||
"version": "0.57.8",
|
||||
"version": "0.57.9",
|
||||
"imports": {
|
||||
"#/*": "./*.js"
|
||||
},
|
||||
|
||||
+7
-1
@@ -29,6 +29,7 @@ export function curateStash(stash, assets = {}) {
|
||||
stashedScenes: stash.stashed_scenes ?? null,
|
||||
stashedMovies: stash.stashed_movies ?? null,
|
||||
stashedActors: stash.stashed_actors ?? null,
|
||||
lastStashAt: stash.last_stash_at,
|
||||
user: assets.user
|
||||
? {
|
||||
id: assets.user.id,
|
||||
@@ -150,7 +151,12 @@ export async function fetchUserStashes(usernameOrId, reqUser) {
|
||||
if (userId !== reqUser?.id) {
|
||||
builder.where('public', true);
|
||||
}
|
||||
});
|
||||
})
|
||||
.orderBy([
|
||||
{ column: 'stashes.primary', order: 'desc' },
|
||||
{ column: 'stashes_meta.last_stash_at', order: 'desc' },
|
||||
{ column: 'stashes.name', order: 'asc' },
|
||||
]);
|
||||
|
||||
return stashes.map((stash) => curateStash(stash, { user: reqUser }));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user