Collections: open collection form on creation

This commit is contained in:
2026-04-08 14:18:34 +02:00
parent f2899b968c
commit 6e3899b25e
2 changed files with 8 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ function createCollection() {
if (res.ok) {
addingCollection.value = false
collection.value.name = ''
emit('created')
res.json().then((json) => emit('created', json.id))
} else {
res.json().then((json) => (errors.value = json))
}