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

Enhancement: remove previous notifications #53

Open
raiseandfall opened this issue Feb 24, 2016 · 0 comments
Open

Enhancement: remove previous notifications #53

raiseandfall opened this issue Feb 24, 2016 · 0 comments

Comments

@raiseandfall
Copy link

Hey there, first of all, great component ! thanks for the hard work.

I'd like to propose one enhancement: the ability to remove existing notifications before adding a new one.
Basically the component would only allow one notification at the time. Right now I can add several notifications and they stack on top of each other.
The way we could do it is restrict the number of notifications visible in the same time. If the number goes over the limit, the oldest notification would be removed, until reaching the limit again.

I'm thinking about adding one setting option: maxVisibleNotifications
This could be a parameter in the provider:

app.config(['notificationsConfigProvider', function (notificationsConfigProvider) {
    // max visible notifications
    notificationsConfigProvider.setMaxVisibleNotifications(1);
}]);

I'm currently too busy to take care of it & pull a request, but I will once I can. I just wanted to throw the idea out there.

Thanks

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