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

We need dismissOldOnNew flag #395

Open
Shist opened this issue Oct 23, 2024 · 0 comments
Open

We need dismissOldOnNew flag #395

Shist opened this issue Oct 23, 2024 · 0 comments
Labels
Type: Enhancement New feature or request

Comments

@Shist
Copy link

Shist commented Oct 23, 2024

We need dismissOldOnNew flag

When we set maxToasts = 1 we can only see 1 toast at the same time. However, some of them have quite long expiration time (will say, 7-8 seconds). And when some other toast triggered, it comes to queue and waits untill first one will disappear. However, that can be not user friendly, especially when user clicks some button and about 3-4 toasts are coming to queue. Then, next 30 seconds some toasts will change each other, user can even forget what caused that toasts.

demo.mp4

It will be good to have some ability to say vue-toastification, that new toast should make old one dismissed (if it's still on screen), so that user will see the most recent message.

You could do some dismissOldOnNew flag, which can be true or false. If it's true, then new toast will make old one dismissed (or the oldest one in queue in case when maxToasts > 1). If it's false, then behaviour stays the same as now.

@Shist Shist added the Type: Enhancement New feature or request label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant