mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
remove code 2
This commit is contained in:
parent
b7740e5351
commit
72e0e90e2e
@ -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',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user