AStaroverov / vue-toast

toasts for vuejs
148 stars 28 forks source link

A ClearAll() function would be nice here #15

Closed SmarterPhoneLabs closed 7 years ago

SmarterPhoneLabs commented 7 years ago

I have a case where i put the toaster in my root vue, but emit to it from other vues. It makes great sense to do this, but when my view changes completely to another, it would be great to close all of the open toasts instead of waiting for them to expire on their own.

AStaroverov commented 7 years ago

Complete. Now vueToasts have method closeAll.

SmarterPhoneLabs commented 7 years ago

Sweet! Ill pull the latest and give it a go! Thanks

SmarterPhoneLabs commented 7 years ago

Amateur question on my side, did this automatically update your npm package as well, or do I need to use this github version instead?

AStaroverov commented 7 years ago

U can use npm packcage, just install latest version.

SmarterPhoneLabs commented 7 years ago

Nice!

On Tue, May 2, 2017 at 9:26 AM, Alexandr notifications@github.com wrote:

U can use npm packcage, just install latest version.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AStaroverov/vue-toast/issues/15#issuecomment-298651457, or mute the thread https://github.com/notifications/unsubscribe-auth/ABIq5aYvUG7ZSClyKY02D4pyNUcIJtXMks5r1z0SgaJpZM4NJROp .