From 21696ce43eb8c338bb50b873b6b507b4a4bd29b9 Mon Sep 17 00:00:00 2001 From: Christian Hartmann Date: Sat, 5 Apr 2025 11:21:25 +0200 Subject: [PATCH] Refactor: Simplify props usage by removing unnecessary bindings in various components Signed-off-by: Christian Hartmann --- src/Forms.vue | 8 +++---- src/FormsSettings.vue | 2 +- src/FormsSubmit.vue | 2 +- src/components/AppNavigationForm.vue | 21 ++++++++----------- src/components/Questions/AnswerInput.vue | 2 +- src/components/Questions/Question.vue | 8 +++---- src/components/Questions/QuestionFile.vue | 2 +- src/components/Results/Submission.vue | 2 +- .../SidebarTabs/SharingSearchDiv.vue | 2 +- .../SidebarTabs/SharingShareDiv.vue | 2 +- .../SidebarTabs/SharingSidebarTab.vue | 2 +- .../SidebarTabs/TransferOwnership.vue | 14 ++++++------- src/components/TopBar.vue | 2 +- src/views/Create.vue | 6 +++--- src/views/Results.vue | 6 +++--- src/views/Submit.vue | 16 +++++++------- 16 files changed, 47 insertions(+), 50 deletions(-) diff --git a/src/Forms.vue b/src/Forms.vue index 6ceee9723..1b6ab8d16 100644 --- a/src/Forms.vue +++ b/src/Forms.vue @@ -49,7 +49,7 @@ v-for="form in sharedForms" :key="form.id" :form="form" - :read-only="true" + read-only @open-sharing="openSharing" @mobile-close-navigation="mobileCloseNavigation" /> @@ -60,7 +60,7 @@ @@ -109,7 +109,7 @@ diff --git a/src/FormsSettings.vue b/src/FormsSettings.vue index 6808151c5..cb37d9136 100644 --- a/src/FormsSettings.vue +++ b/src/FormsSettings.vue @@ -17,7 +17,7 @@ diff --git a/src/components/AppNavigationForm.vue b/src/components/AppNavigationForm.vue index 1d200db5b..662736490 100644 --- a/src/components/AppNavigationForm.vue +++ b/src/components/AppNavigationForm.vue @@ -9,7 +9,7 @@ :active="isActive" :actions-aria-label="t('forms', 'Form actions')" :counter-number="form.submissionCount" - :compact="true" + compact :force-display-actions="forceDisplayActions" :name="formTitle" :to="{ @@ -28,8 +28,8 @@