From fda279388891c4e9618ef2319d554714d81975c9 Mon Sep 17 00:00:00 2001 From: Florian Sylvain Date: Thu, 29 Oct 2026 17:05:25 +0100 Subject: [PATCH] fix: add details to media panel when image is used in author or site --- web/src/components/MediaDetailPanel.vue | 34 +++++++++++++++++++++++++ web/src/i18n/messages.ts | 3 +++ web/src/lib/mediaUsage.ts | 15 +++++++++++ 3 files changed, 52 insertions(+) diff --git a/web/src/components/MediaDetailPanel.vue b/web/src/components/MediaDetailPanel.vue index 3a04bc5..32687c0 100644 --- a/web/src/components/MediaDetailPanel.vue +++ b/web/src/components/MediaDetailPanel.vue @@ -421,6 +421,40 @@ const duplicateAlert = computed(() => { +
+

{{ t('Used elsewhere') }}

+ +
+
item.type === ENTRY_TYPE) + const others = items + .filter((item) => item.type === 'author' || item.type === 'site') + .map((item) => ({ + type: item.type as UsageOther['type'], + id: item.id, + title: item.title ?? '', + })) return { articles, + others, entries: entryItems.slice(0, ENTRY_ROWS_SHOWN).map(toEntry), entryCount: entryItems.length, more: Math.max(0, entryItems.length - ENTRY_ROWS_SHOWN),