From 1bf34f350cb3b1a908194376031e61d975f37b2a Mon Sep 17 00:00:00 2001 From: Denis Lugowski Date: Thu, 20 Nov 2025 17:46:41 +0100 Subject: [PATCH] fix(#15): Fix several UI bugs --- legalconsenthub/app/components/FormEngine.vue | 54 ++++++++++++------- .../components/FormStepperWithNavigation.vue | 5 +- .../app/components/formelements/TheInput.vue | 2 +- .../useApplicationFormNavigation.ts | 11 ---- .../application-forms/[id]/[sectionIndex].vue | 18 +++++-- legalconsenthub/app/pages/create.vue | 4 +- legalconsenthub/app/pages/index.vue | 34 +++++------- 7 files changed, 70 insertions(+), 58 deletions(-) diff --git a/legalconsenthub/app/components/FormEngine.vue b/legalconsenthub/app/components/FormEngine.vue index 6ac5c7e..60f21d1 100644 --- a/legalconsenthub/app/components/FormEngine.vue +++ b/legalconsenthub/app/components/FormEngine.vue @@ -1,7 +1,7 @@ @@ -59,12 +69,12 @@ const applicationFormId = Array.isArray(route.params.id) ? route.params.id[0] : const { applicationForm, navigationLinks: links, - dropdownItems: items, updateApplicationForm } = await useApplicationFormNavigation(applicationFormId!) const { updateApplicationForm: updateForm, submitApplicationForm } = useApplicationForm() const { validateFormElements, getHighestComplianceStatus } = useApplicationFormValidator() +const { canWriteApplicationForms } = usePermissions() const userStore = useUserStore() const { user } = storeToRefs(userStore) diff --git a/legalconsenthub/app/pages/create.vue b/legalconsenthub/app/pages/create.vue index 81884e4..029a036 100644 --- a/legalconsenthub/app/pages/create.vue +++ b/legalconsenthub/app/pages/create.vue @@ -8,6 +8,8 @@ +
+ @@ -28,7 +30,7 @@ @add-input-form="handleAddInputForm" > - +
diff --git a/legalconsenthub/app/pages/index.vue b/legalconsenthub/app/pages/index.vue index 106949f..20490ab 100644 --- a/legalconsenthub/app/pages/index.vue +++ b/legalconsenthub/app/pages/index.vue @@ -29,15 +29,20 @@ - - - + - - - -