feat(attachments): downloadable attachments in ProvenancePanel + PostInfoHeader
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user