feat: editor image removal QOLs

This commit is contained in:
fsylvain committed 2026-09-29 02:44:31 +02:00
1 parent 0fc00ceeff
commit b29d0ed045
23 files changed
+1398 -151

No files matched your search

+2 -2
View File
@@ -41,7 +41,7 @@ const props = defineProps<{
}>()
const emit = defineEmits<{
uploaded: [location: string]
uploaded: [location: string, imageId: number]
close: []
}>()
@@ -167,7 +167,7 @@ async function runUpload(file: File) {
const outcome = await start(props.articleId, file)
if (outcome.kind === 'success') {
succeeded.value = true
emit('uploaded', outcome.location)
emit('uploaded', outcome.location, outcome.id)
closeTimer = setTimeout(() => {
open.value = false
}, 600)