smastrom / notivue

🔔 Powerful toast notification system for Vue and Nuxt.
https://notivue.smastrom.io
MIT License
633 stars 7 forks source link

Positioning individual notifications #59

Closed alvaro-canepa closed 2 weeks ago

alvaro-canepa commented 1 month ago

Hi, thanks for this great library! excellent work.

Is there any way to position one notification without setting up global config?
I want to stay almost all notifications on "top-center", but I need to made some promise notifications on "bottom-right" position. At now, I use updateConfig({ position: 'bottom-right' }); and restore position on resolve. But any success, info, error notification that be fired before promise resolve, will be display on bottom right, instead of top center.

thanks!

smastrom commented 1 month ago

Hi @alvaro-canepa, unfortunately it is not possible to display two streams at the same time. The best you can do is to temporarily enable the queue before pushing the promise's one and then disable it after dismissal.

alvaro-canepa commented 1 month ago

Thanks @smastrom
I see there is only one global container that control the position.

Maybe something to consider in the future ;)