From 4e6c8f3fe9ffc8502801469030e2db28b277cfa0 Mon Sep 17 00:00:00 2001 From: CodeNamedRobin Date: Fri, 30 Aug 2024 13:44:20 +0200 Subject: [PATCH] feat(dashboard/components): added FormSection component feat(dashboard/user-profile): removed dialog for changing pin, added form section for changing pin --- apps/dashboard/src/components/FormSection.vue | 77 +++++++++++++++++++ .../user/components/UserSettingsComponent.vue | 26 ++++--- .../user/components/forms/ChangePinForm.vue | 13 +++- 3 files changed, 104 insertions(+), 12 deletions(-) create mode 100644 apps/dashboard/src/components/FormSection.vue diff --git a/apps/dashboard/src/components/FormSection.vue b/apps/dashboard/src/components/FormSection.vue new file mode 100644 index 00000000..4366efa2 --- /dev/null +++ b/apps/dashboard/src/components/FormSection.vue @@ -0,0 +1,77 @@ + + + + + diff --git a/apps/dashboard/src/modules/user/components/UserSettingsComponent.vue b/apps/dashboard/src/modules/user/components/UserSettingsComponent.vue index 8dd3d54b..e442344e 100644 --- a/apps/dashboard/src/modules/user/components/UserSettingsComponent.vue +++ b/apps/dashboard/src/modules/user/components/UserSettingsComponent.vue @@ -5,15 +5,18 @@ :action="undefined" class="w-5" > +
-

{{ t('userSettings.changeCredentials') }}

-
-

{{ t('userSettings.changePin') }}

- -
+ + +

{{ t('userSettings.changePassword') }}

- + @@ -32,6 +36,11 @@ const props = defineProps({ type: Object as PropType>>, required: true, }, + edit: { + type: Boolean, + required: false, + default: false, + }, }); const { t } = useI18n();