Skip to content

Commit

Permalink
Issue 169, 145 & 175 Q2 resolved with this PR, a new event @OnClick i… (
Browse files Browse the repository at this point in the history
#176)

* Issue 169, 145 & 175 Q2 resolved with this PR, a new event @OnClick is introduced along with that a callback function onDestroy will get called when notification destroy.s

* Update src/Notifications.vue

* Issue 169, 145 & 175 Q2 | Upon suugestion from @euvl onDestory which was earlier a callback function has been changes to an event @destroy.

Co-authored-by: nemeton <[email protected]>
Co-authored-by: Yev Vlasenko <[email protected]>
  • Loading branch information
3 people authored Jul 13, 2020
1 parent 25bfb29 commit b93a9b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Notifications.vue
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ const Component = {
},
methods: {
destroyIfNecessary (item) {
this.$emit('click', item)
if (this.closeOnClick) {
this.destroy(item)
}
Expand Down Expand Up @@ -326,6 +327,8 @@ const Component = {
if (!this.isVA) {
this.clean()
}
this.$emit('destroy', item)
},
destroyById (id) {
Expand Down

0 comments on commit b93a9b3

Please sign in to comment.