You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I want to create showError and showSuccess notifications one time and use its as a global mixin:
Vue.mixin({
notifications: {
showError: {
title: 'Attention!',
message: 'Error message',
type: 'error',
code: '0'
},
showSuccess: {
title: '',
message: 'Success message',
type: 'success',
backgroundColor: '#f0f3f5',
code: '0'
}
}
})
but browser show warnings (for every component on page):
"VueNotifications: trying to create method which is already exist: showError"
"VueNotifications: trying to create method which is already exist: showSuccess"
How it include in "methods" and which methods I can create (if I can) for global mixin without "notifications"?
The text was updated successfully, but these errors were encountered:
Hello!
I want to create showError and showSuccess notifications one time and use its as a global mixin:
Vue.mixin({
notifications: {
showError: {
title: 'Attention!',
message: 'Error message',
type: 'error',
code: '0'
},
showSuccess: {
title: '',
message: 'Success message',
type: 'success',
backgroundColor: '#f0f3f5',
code: '0'
}
}
})
but browser show warnings (for every component on page):
"VueNotifications: trying to create method which is already exist: showError"
"VueNotifications: trying to create method which is already exist: showSuccess"
How it include in "methods" and which methods I can create (if I can) for global mixin without "notifications"?
The text was updated successfully, but these errors were encountered: