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

Can we have config for notification count / limit for number of visible notifications? #265

Open
Shajansheriff opened this issue Feb 19, 2020 · 1 comment

Comments

@Shajansheriff
Copy link
Contributor

I have a use-case to show only one latest notification through out my application lifetime. Right now we have options to clear all the notifications before showing the new notification.
this.notifications.clearAll().success('message')

Even with autoclear config, we have to call clearAll to be safe to show one at a time.

so I suggest to have globals/config 'ember-cli-notifications: { 'count': 1 }, this will limit to one latest notification.

@Shajansheriff
Copy link
Contributor Author

Instead of the above suggestion, can we add a config to prevent adding duplicate notification message? @mansona

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

1 participant