From 595076acc5709eca246571bb7f58996bfe17de98 Mon Sep 17 00:00:00 2001 From: Boris Fritscher Date: Mon, 22 Jan 2024 17:02:45 +0100 Subject: [PATCH 1/5] feat: Support cloning collections #38 --- src/components/collection/CollectionUi.vue | 1 - src/pages/Collections.vue | 85 ++++++++++++++++++---- src/shared/api.ts | 10 +++ src/store/node/actions.ts | 17 ++++- 4 files changed, 97 insertions(+), 16 deletions(-) diff --git a/src/components/collection/CollectionUi.vue b/src/components/collection/CollectionUi.vue index 8ada7e8..26874bc 100644 --- a/src/components/collection/CollectionUi.vue +++ b/src/components/collection/CollectionUi.vue @@ -159,7 +159,6 @@ export default defineComponent({ props: { initialSchema: { type: Object as () => CollectionCreateSchema | CollectionSchema | CollectionUpdateSchema, - required: true, default: () => ({ name: '', diff --git a/src/pages/Collections.vue b/src/pages/Collections.vue index 655a3f6..c027cc6 100644 --- a/src/pages/Collections.vue +++ b/src/pages/Collections.vue @@ -2,40 +2,74 @@ -