filter GraphQL error

This commit is contained in:
Moriz Wahl 2022-02-16 08:24:37 +01:00
parent b4d0f5cbed
commit c2723c614c
2 changed files with 1 additions and 10 deletions

View File

@ -21,16 +21,6 @@ Vue.config.productionTip = false
Vue.mixin(toasters)
Vue.toasted.register(
'error',
(payload) => {
return payload.replace(/^GraphQL error: /, '')
},
{
type: 'error',
},
)
loadAllRules(i18n)
addNavigationGuards(router, store, apolloProvider.defaultClient)

View File

@ -13,6 +13,7 @@ export const toasters = {
})
},
toast(message, options) {
message = message.replace(/^GraphQL error: /, '')
this.$bvToast.toast(message, {
autoHideDelay: 5000,
appendToast: false,