diff --git a/admin/src/components/AutomaticCreation.vue b/admin/src/components/AutomaticCreation.vue
index cd1b394b9..04ec752c6 100644
--- a/admin/src/components/AutomaticCreation.vue
+++ b/admin/src/components/AutomaticCreation.vue
@@ -54,8 +54,6 @@ export default {
},
methods: {
editAutomaticContributionData(data) {
- console.log('start methodes editAutomaticContributionData')
- console.log(typeof data)
if (!this.visible) this.$root.$emit('bv::toggle::collapse', 'newContribution')
this.automaticContributionData = data
},
diff --git a/admin/src/components/AutomaticCreationForm.vue b/admin/src/components/AutomaticCreationForm.vue
index 590a68a45..23ec651d9 100644
--- a/admin/src/components/AutomaticCreationForm.vue
+++ b/admin/src/components/AutomaticCreationForm.vue
@@ -131,12 +131,12 @@ export default {
},
min: new Date(),
cycle: [
- { value: 'no cycle', text: 'null' },
- { value: 'stündlich', text: 'stündlich' },
- { value: 'täglich', text: 'täglich' },
- { value: 'wöchentlich', text: 'wöchentlich' },
- { value: 'monatlich', text: 'monatlich' },
- { value: 'jährlich', text: 'jährlich' },
+ { value: 'none', text: 'no cycle' },
+ { value: 'hourly', text: 'stündlich' },
+ { value: 'daily', text: 'täglich' },
+ { value: 'weekly', text: 'wöchentlich' },
+ { value: 'monthly', text: 'monatlich' },
+ { value: 'yearly', text: 'jährlich' },
],
repetition: [
{ value: '1', text: '1 mal' },
@@ -196,5 +196,18 @@ export default {
return this.automaticContributionData
},
},
+ watch: {
+ automaticContributionData() {
+ alert('change automaticContributionData')
+ this.form.name = this.automaticContributionData.name
+ this.form.memo = this.automaticContributionData.memo
+ this.form.amount = this.automaticContributionData.amount
+ this.form.startDate = this.automaticContributionData.startDate
+ this.form.endDate = this.automaticContributionData.endDate
+ this.form.cycle = this.automaticContributionData.cycle
+ this.form.repetition = this.automaticContributionData.repetition
+ this.form.maxAmount = this.automaticContributionData.maxAmount
+ },
+ },
}
diff --git a/admin/src/components/AutomaticCreationList.vue b/admin/src/components/AutomaticCreationList.vue
index ec006156b..d2d0a7b7a 100644
--- a/admin/src/components/AutomaticCreationList.vue
+++ b/admin/src/components/AutomaticCreationList.vue
@@ -7,12 +7,12 @@
-