From 6e3899b25ef6efdf5cbf26145a15753b559a654b Mon Sep 17 00:00:00 2001 From: Arthur Lefebvre Date: Wed, 8 Apr 2026 14:18:34 +0200 Subject: [PATCH] Collections: open collection form on creation --- front/src/AddCollection.vue | 2 +- front/src/CollectionsBrowser.vue | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/front/src/AddCollection.vue b/front/src/AddCollection.vue index 3c6657a..243719d 100644 --- a/front/src/AddCollection.vue +++ b/front/src/AddCollection.vue @@ -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)) } diff --git a/front/src/CollectionsBrowser.vue b/front/src/CollectionsBrowser.vue index 16aa1ad..9ac0a83 100644 --- a/front/src/CollectionsBrowser.vue +++ b/front/src/CollectionsBrowser.vue @@ -1,10 +1,12 @@