From b23f479b1f2b16409804cca81f791cb4bfe8d636 Mon Sep 17 00:00:00 2001 From: Kamila Date: Thu, 8 Aug 2024 14:16:03 +0200 Subject: [PATCH] WIP --- .../Inputs/InputPasswordConfirmation.vue | 24 +++-- .../src/components/Inputs/InputUsername.vue | 4 +- .../UserSettings/UserGMSLocation.vue | 8 +- .../UserSettings/UserGMSLocationFormat.vue | 100 +++++++++--------- .../UserSettings/UserNewsletter.vue | 11 +- .../components/UserSettings/UserPassword.vue | 17 ++- .../UserSettings/UserSettingsSwitch.vue | 33 +++--- frontend/src/pages/Settings.vue | 28 ++--- 8 files changed, 121 insertions(+), 104 deletions(-) diff --git a/frontend/src/components/Inputs/InputPasswordConfirmation.vue b/frontend/src/components/Inputs/InputPasswordConfirmation.vue index aa54c4b28..f76ea6aad 100644 --- a/frontend/src/components/Inputs/InputPasswordConfirmation.vue +++ b/frontend/src/components/Inputs/InputPasswordConfirmation.vue @@ -4,7 +4,7 @@ @@ -27,16 +27,16 @@ @@ -51,7 +51,7 @@ const password = ref('') const passwordRepeat = ref('') defineProps({ - value: { + modelValue: { type: Object, required: true, }, @@ -61,6 +61,8 @@ defineProps({ }, }) +const emit = defineEmits(['input']) + const createId = (text) => { return text.replace(/ +/g, '-') } @@ -69,7 +71,11 @@ const passwordObject = computed(() => { return { password: password.value, passwordRepeat: passwordRepeat.value } }) -watch([password, passwordRepeat], () => { - emit('input', passwordObject.value) -}) +watch( + [password, passwordRepeat], + () => { + emit('input', passwordObject.value) + }, + { deep: true }, +) diff --git a/frontend/src/components/Inputs/InputUsername.vue b/frontend/src/components/Inputs/InputUsername.vue index 96e893698..f606c35cf 100644 --- a/frontend/src/components/Inputs/InputUsername.vue +++ b/frontend/src/components/Inputs/InputUsername.vue @@ -5,15 +5,15 @@ diff --git a/frontend/src/components/UserSettings/UserGMSLocation.vue b/frontend/src/components/UserSettings/UserGMSLocation.vue index 0d7fe9ab7..2b2d95520 100644 --- a/frontend/src/components/UserSettings/UserGMSLocation.vue +++ b/frontend/src/components/UserSettings/UserGMSLocation.vue @@ -1,8 +1,6 @@ - diff --git a/frontend/src/components/UserSettings/UserGMSLocationFormat.vue b/frontend/src/components/UserSettings/UserGMSLocationFormat.vue index 7de8dc106..f3dab95aa 100644 --- a/frontend/src/components/UserSettings/UserGMSLocationFormat.vue +++ b/frontend/src/components/UserSettings/UserGMSLocationFormat.vue @@ -1,68 +1,70 @@ -