From 583cf75a31d2d9569cadcaaecafd645eace64be4 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Sun, 30 Nov 2025 17:03:44 +0100 Subject: [PATCH] remove toast because message is already shown, more prominent --- frontend/src/components/Contributions/ContributionCreate.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/frontend/src/components/Contributions/ContributionCreate.vue b/frontend/src/components/Contributions/ContributionCreate.vue index e509ed412..417361dae 100644 --- a/frontend/src/components/Contributions/ContributionCreate.vue +++ b/frontend/src/components/Contributions/ContributionCreate.vue @@ -31,14 +31,12 @@ import { GDD_PER_HOUR } from '@/constants' import { useQuery, useMutation } from '@vue/apollo-composable' import { openCreationsAmounts, createContribution } from '@/graphql/contributions.graphql' import { useAppToast } from '@/composables/useToast' -import { useI18n } from 'vue-i18n' import { computed, ref } from 'vue' import SuccessMessage from '@/components/SuccessMessage.vue' import OpenCreationsAmount from '@/components/Contributions/OpenCreationsAmount.vue' import { useMinimalContributionDate } from '@/composables/useMinimalContributionDate' -const { toastError, toastSuccess } = useAppToast() -const { t } = useI18n() +const { toastError } = useAppToast() const { result: maxForMonths, refetch } = useQuery( openCreationsAmounts, @@ -68,7 +66,6 @@ async function handleCreateContribution(contribution) { form.value = emptyForm() await createContributionMutation({ ...contribution }) await refetch() - toastSuccess(t('contribution.submitted')) showForm.value = false } catch (err) { toastError(err.message)