-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Browser warnings when created notifications as global mixin #175
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: