From c68b2737bc5be6a0ddcd1c00d5c59cdaf375ce20 Mon Sep 17 00:00:00 2001 From: Michael Wedl Date: Tue, 21 Nov 2023 08:49:01 +0100 Subject: [PATCH] Show server errors in create project page form --- .../src/pages/projects/[projectId]/index.vue | 1 + frontend/src/pages/projects/new.vue | 35 +++++++++++++++---- 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/frontend/src/pages/projects/[projectId]/index.vue b/frontend/src/pages/projects/[projectId]/index.vue index 06afa573b..f84e4305e 100644 --- a/frontend/src/pages/projects/[projectId]/index.vue +++ b/frontend/src/pages/projects/[projectId]/index.vue @@ -164,6 +164,7 @@ const { toolbarAttrs, readonly, editMode } = useLockEdit({ try { project.value = await projectStore.partialUpdateProject(project.value, ['name', 'project_type', 'force_change_project_type', 'language', 'tags', 'members', 'imported_members']); + serverErrors.value = null; } catch (error: any) { if (error?.status === 400 && error?.data) { serverErrors.value = error.data; diff --git a/frontend/src/pages/projects/new.vue b/frontend/src/pages/projects/new.vue index e907c9e8c..127f3a048 100644 --- a/frontend/src/pages/projects/new.vue +++ b/frontend/src/pages/projects/new.vue @@ -5,17 +5,36 @@ - - - - + + + +