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

customize the Service defaults for (just) some of the message type's? #215

Open
iirving opened this issue Nov 14, 2016 · 1 comment
Open

Comments

@iirving
Copy link

iirving commented Nov 14, 2016

Is it possible to override the Service defaults for (just) some of the message type's?

what I would like to do is for type's [warning', 'danger', 'alert'] to set a much longer timeout and/or make them sticky, and do so globally in the config/environment.js, rather than on a message by message basis.

@sbatson5
Copy link
Collaborator

You may be able to reopen the flash object and override timeout to be conditional. There are some examples of reopening objects on the Ember guides website:
https://guides.emberjs.com/v2.10.0/object-model/reopening-classes-and-instances/

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

2 participants