From cbed3374c807b3ec9e63762199fbaf7507d1336e Mon Sep 17 00:00:00 2001 From: kaira Date: Mon, 1 Jul 2024 23:16:44 +0100 Subject: [PATCH] Refactor project and organization forms to use local reactive data - Refactored ProjectForm.vue and OrganizationForm.vue to use local reactive data for form inputs, instead of directly manipulating store data. - Updated corresponding store modules to accommodate changes in form components. - Created a new type definition for Project in projectTypes.ts. --- src/components/forms/OrganizationForm.vue | 30 +++++++++---- src/components/forms/ProjectForm.vue | 32 ++++++++++---- src/stores/of/organizationStore.ts | 52 ++++++++++------------- src/stores/projectStore.ts | 38 ++++++++++------- src/types.ts | 13 ------ src/types/officeFrameTypes.ts | 16 ++++--- src/types/projectTypes.ts | 12 ++++++ 7 files changed, 111 insertions(+), 82 deletions(-) create mode 100644 src/types/projectTypes.ts diff --git a/src/components/forms/OrganizationForm.vue b/src/components/forms/OrganizationForm.vue index 876b047..d025e02 100644 --- a/src/components/forms/OrganizationForm.vue +++ b/src/components/forms/OrganizationForm.vue @@ -21,31 +21,31 @@ - - + - - - - @@ -67,7 +67,7 @@