Merge remote-tracking branch 'origin/master' into 3214-feature-x-com-sendcoins-4-activate-email-and-event-actions-in-federation-modul

This commit is contained in:
clauspeterhuebner 2026-02-19 02:05:49 +01:00
commit a4d5fef185

View File

@ -126,6 +126,8 @@ const form = reactive({ ...entityDataToForm.value })
const now = ref(new Date()) // checked every minute, updated if day, month or year changed const now = ref(new Date()) // checked every minute, updated if day, month or year changed
const disableSmartValidState = ref(false) const disableSmartValidState = ref(false)
// set to true after submit, to disable submit button
const submitted = ref(false)
const minimalDate = computed(() => useMinimalContributionDate(now.value)) const minimalDate = computed(() => useMinimalContributionDate(now.value))
const isThisMonth = computed(() => { const isThisMonth = computed(() => {
@ -195,7 +197,7 @@ const validationSchema = computed(() => {
}) })
}) })
const disabled = computed(() => !validationSchema.value.isValidSync(form)) const disabled = computed(() => !validationSchema.value.isValidSync(form) || submitted.value)
// decide message if no open creation exists // decide message if no open creation exists
const noOpenCreation = computed(() => { const noOpenCreation = computed(() => {
@ -243,6 +245,7 @@ const updateField = (newValue, name) => {
} }
function submit() { function submit() {
submitted.value = true
emit('upsert-contribution', toRaw(form)) emit('upsert-contribution', toRaw(form))
} }
</script> </script>