Skip to content

Commit

Permalink
feat: [Enhancement] Notify - define action as non-dismissing by prop #…
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Mar 30, 2018
1 parent 42e8509 commit 7459af2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/notify.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ function init ({ $q, Vue }) {
this.remove(notif)
}

if (notif.actions) {
if (config.actions) {
notif.actions = config.actions.map(item => {
const
handler = item.handler,
action = clone(item)
action.handler = typeof handler === 'function'
? () => {
handler()
close()
!item.noDismiss && close()
}
: () => close()
return action
Expand Down

0 comments on commit 7459af2

Please sign in to comment.