unit test + some refactoring
This commit is contained in:
parent
9c00610d00
commit
8c59bad3c2
3 changed files with 277 additions and 86 deletions
|
|
@ -10,7 +10,7 @@ library.add(
|
|||
faTimes
|
||||
)
|
||||
|
||||
const CURRENT_UPDATE_COUNTER = 1
|
||||
export const CURRENT_UPDATE_COUNTER = 1
|
||||
|
||||
const UpdateNotification = {
|
||||
data () {
|
||||
|
|
@ -40,13 +40,13 @@ const UpdateNotification = {
|
|||
},
|
||||
neverShowAgain () {
|
||||
this.toggleShow()
|
||||
// this.$store.commit('setFlag', { flag: 'updateCounter', value: CURRENT_UPDATE_COUNTER })
|
||||
// this.$store.commit('setFlag', { flag: 'dontShowUpdateNotifs', value: 1 })
|
||||
// this.$store.dispatch('pushServerSideStorage')
|
||||
this.$store.commit('setFlag', { flag: 'updateCounter', value: CURRENT_UPDATE_COUNTER })
|
||||
this.$store.commit('setFlag', { flag: 'dontShowUpdateNotifs', value: 1 })
|
||||
this.$store.dispatch('pushServerSideStorage')
|
||||
},
|
||||
dismiss () {
|
||||
this.$store.commit('setFlag', { flag: 'updateCounter', value: CURRENT_UPDATE_COUNTER })
|
||||
// this.$store.dispatch('pushServerSideStorage')
|
||||
this.$store.dispatch('pushServerSideStorage')
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue