feat(attachments): downloadable attachments in ProvenancePanel + PostInfoHeader

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-19 11:17:14 -04:00
parent 74e34d359b
commit cba662a900
4 changed files with 51 additions and 2 deletions
+5 -2
View File
@@ -16,8 +16,11 @@ export const useProvenanceStore = defineStore('provenance', () => {
imageCache.value[id] = { loading: true, error: null, entries: null }
try {
const body = await api.get(`/api/provenance/image/${id}`)
imageCache.value[id] =
{ loading: false, error: null, entries: body.provenance }
imageCache.value[id] = {
loading: false, error: null,
entries: body.provenance,
attachments: body.attachments || [],
}
} catch (e) {
imageCache.value[id] =
{ loading: false, error: e.message, entries: null }