Skip to content

Commit

Permalink
Notifications should only appear on things that are worth it.
Browse files Browse the repository at this point in the history
  • Loading branch information
dahrens committed Oct 18, 2017
1 parent f870fcd commit 48de673
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/store/plugins/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ const baseNotification = {
}

const notifications = {
[types.WRITE_SETTINGS] (settings) {
let n = JSON.parse(JSON.stringify(baseNotification))
n.style = 'is-success'
n.pages.push('settings')
n.message = 'Settings successfully saved'
return n
},
[types.INSERT_DOG] (dog) {
let n = JSON.parse(JSON.stringify(baseNotification))
n.style = 'is-success'
Expand All @@ -23,14 +16,6 @@ const notifications = {
n.message = `You successfully created the dog ${dog.name}`
return n
},
[types.UPDATE_DOG] (dog) {
let n = JSON.parse(JSON.stringify(baseNotification))
n.style = 'is-success'
n.pages.push('plan')
n.pages.push('meals')
n.message = `You successfully created the dog ${dog.name}`
return n
},
[types.REMOVE_DOG] (dogId) {
let n = JSON.parse(JSON.stringify(baseNotification))
n.style = 'is-warning'
Expand Down

0 comments on commit 48de673

Please sign in to comment.