Skip to content
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

Open
Yorikkk opened this issue Oct 14, 2019 · 3 comments
Open

Browser warnings when created notifications as global mixin #175

Yorikkk opened this issue Oct 14, 2019 · 3 comments

Comments

@Yorikkk
Copy link

Yorikkk commented Oct 14, 2019

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

@frangte
Copy link

frangte commented Jan 16, 2020

@Yorikkk
Have you solved this problem yet?

@Yorikkk
Copy link
Author

Yorikkk commented Jan 21, 2020

@frangte
Unfortunately no.
I use it as local mixin and add on every page as I need

@Delari
Copy link

Delari commented Oct 12, 2020

how fix this if want create global mixin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants