mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-01 12:44:43 +00:00
remove toast because message is already shown, more prominent
This commit is contained in:
parent
ae5bd1b251
commit
583cf75a31
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user