Notify: dismiss default actions
-
Hi,
I have default notify defaults:Notify.setDefaults({ position: 'bottom', timeout: 10000, textColor: 'white', actions: [ { icon: 'clear', color: 'white' } ] });
but when I call like this:
this.$q.notify({ message: 'New message', actions: [ { label: 'View', handler: () => console.log('wooow') } ] });
as result I have two actions:
how can I dismiss default actions and leave only “View” action?
-
Anybody helps?
-
Dont use default?
-
yep, dismiss defaults if I set actions in $q.notify(…)
-
Any suggestions?
-
Dont set a default. If you want a notify that would look the same, you can create a mixin or a boot file or even using the notify component that you would call when you want to show it.