fix: authors profile pictute all accross the SPA

This commit is contained in:
Florian Sylvain committed 2026-10-19 00:46:16 +02:00
1 parent 18600ab49d
commit 500ad59458
19 files changed
+265 -16

No files matched your search

+7 -1
View File
@@ -35,6 +35,7 @@ const items = computed(() =>
description: author.slug,
value: author.id,
avatarName: author.name,
avatarId: author.avatar_id,
class: chosenIds.value.includes(author.id) ? 'opacity-60' : undefined,
}))
: [],
@@ -135,7 +136,12 @@ function createFromQuery() {
<span class="flex-1 truncate text-left text-muted">{{ t('Add an author') }}</span>
</template>
<template #item-leading="{ item }">
<AuthorAvatar v-if="'avatarName' in item" :name="String(item.avatarName)" :size="24" />
<AuthorAvatar
v-if="'avatarName' in item"
:name="String(item.avatarName)"
:avatar-id="'avatarId' in item ? item.avatarId : null"
:size="24"
/>
</template>
<template #empty>
<div v-if="status === 'error'" class="flex flex-col items-start gap-2 p-2">