From 1391b42c07aeb7ee4c97219613905a8db73c53e4 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 8 Jan 2026 16:06:04 +0100 Subject: [PATCH] refactor(frontend): migrate LinkSharing to FormField component Migrate LinkSharing component to use the new FormField component for permission select, name, password, and share URL fields. --- .../src/components/sharing/LinkSharing.vue | 111 +++++++----------- 1 file changed, 40 insertions(+), 71 deletions(-) diff --git a/frontend/src/components/sharing/LinkSharing.vue b/frontend/src/components/sharing/LinkSharing.vue index 7e69221ac..ac4df074c 100644 --- a/frontend/src/components/sharing/LinkSharing.vue +++ b/frontend/src/components/sharing/LinkSharing.vue @@ -24,67 +24,39 @@ v-if="showNewForm" class="p-4" > -
- -
-
- -
-
-
-
- -
- +
+
-
-
- -
- -
-
+ + +

-
-
- -
-
+ + +
@@ -222,6 +190,7 @@ import {ref, watch, computed, shallowReactive} from 'vue' import {useI18n} from 'vue-i18n' import {PERMISSIONS} from '@/constants/permissions' +import FormField from '@/components/input/FormField.vue' import LinkShareModel from '@/models/linkShare' import type {ILinkShare} from '@/modelTypes/ILinkShare'