remove code 2

This commit is contained in:
ogerly 2023-02-09 16:53:44 +01:00
parent b7740e5351
commit 72e0e90e2e

View File

@ -4,21 +4,18 @@ export const toasters = {
this.toast(message, { this.toast(message, {
title: this.$t('success'), title: this.$t('success'),
variant: 'success', variant: 'success',
autoHideDelay: 5000,
}) })
}, },
toastError(message) { toastError(message) {
this.toast(message, { this.toast(message, {
title: this.$t('error.error'), title: this.$t('error.error'),
variant: 'danger', variant: 'danger',
autoHideDelay: 5000,
}) })
}, },
toastInfo(message) { toastInfo(message) {
this.toast(message, { this.toast(message, {
title: this.$t('navigation.info'), title: this.$t('navigation.info'),
variant: 'warning', variant: 'warning',
autoHideDelay: 5000,
}) })
}, },
toastInfoNoHide(message) { toastInfoNoHide(message) {
@ -32,6 +29,7 @@ export const toasters = {
if (message.replace) message = message.replace(/^GraphQL error: /, '') if (message.replace) message = message.replace(/^GraphQL error: /, '')
this.$root.$bvToast.toast(message, { this.$root.$bvToast.toast(message, {
appendToast: true, appendToast: true,
autoHideDelay: 5000,
solid: true, solid: true,
toaster: 'b-toaster-top-right', toaster: 'b-toaster-top-right',
headerClass: 'gdd-toaster-title', headerClass: 'gdd-toaster-title',