Collections: open collection form on creation
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user