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"?
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"?