diff --git a/admin/src/components/Overlay.vue b/admin/src/components/Overlay.vue
index d6d905e00..60f9b4373 100644
--- a/admin/src/components/Overlay.vue
+++ b/admin/src/components/Overlay.vue
@@ -23,11 +23,11 @@
{{ $t('name') }}
- {{ item.firstName }} {{ item.lastName }}
+ {{ item.user.firstName }} {{ item.user.lastName }}
{{ $t('e_mail') }}
- {{ item.email }}
+ {{ item.user.emailContact.email }}
diff --git a/admin/src/components/RowDetails.vue b/admin/src/components/RowDetails.vue
index 91c32c73c..9715ef158 100644
--- a/admin/src/components/RowDetails.vue
+++ b/admin/src/components/RowDetails.vue
@@ -6,7 +6,7 @@
:icon="type === 'PageCreationConfirm' ? 'x' : 'eye-slash-fill'"
aria-label="Help"
>
- {{ $t('hide_details') }} {{ row.item.firstName }} {{ row.item.lastName }}
+ {{ $t('hide_details') }} {{ row.item.user.firstName }} {{ row.item.user.lastName }}
diff --git a/frontend/src/components/Contributions/ContributionEdit.vue b/frontend/src/components/Contributions/ContributionEdit.vue
index 4ae5fc8c8..98f4e111c 100644
--- a/frontend/src/components/Contributions/ContributionEdit.vue
+++ b/frontend/src/components/Contributions/ContributionEdit.vue
@@ -4,6 +4,7 @@
:max-gdd-last-month="maxForMonths[0]"
:max-gdd-this-month="maxForMonths[1]"
@upsert-contribution="handleUpdateContribution"
+ @abort="emit('contribution-updated')"
/>
diff --git a/frontend/src/components/Contributions/ContributionForm.vue b/frontend/src/components/Contributions/ContributionForm.vue
index b25d858a9..997cdd084 100644
--- a/frontend/src/components/Contributions/ContributionForm.vue
+++ b/frontend/src/components/Contributions/ContributionForm.vue
@@ -63,7 +63,7 @@
type="reset"
variant="secondary"
data-test="button-cancel"
- @click="resetForm"
+ @click="emit('abort')"
>
{{ $t('form.cancel') }}
@@ -102,7 +102,7 @@ const props = defineProps({
maxGddThisMonth: { type: Number, required: true },
})
-const emit = defineEmits(['upsert-contribution', 'update:modelValue', 'reset-form'])
+const emit = defineEmits(['upsert-contribution', 'update:modelValue', 'abort'])
const { t } = useI18n()
@@ -212,9 +212,6 @@ const updateField = (newValue, name) => {
function submit() {
emit('upsert-contribution', toRaw(form))
}
-function resetForm() {
- Object.assign(form, entityDataToForm.value)
-}