diff options
| author | Henry Jameson <me@hjkos.com> | 2022-08-04 22:09:42 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-08-04 22:09:42 +0300 |
| commit | 8c59bad3c2444e7deea20f9d301b675d2ef51016 (patch) | |
| tree | 334591c1a764cd76a6d8f4f0a1045e4c2a6edcef /src/components/update_notification/update_notification.js | |
| parent | 9c00610d0031969cce4d50c0f947098a632ca712 (diff) | |
unit test + some refactoring
Diffstat (limited to 'src/components/update_notification/update_notification.js')
| -rw-r--r-- | src/components/update_notification/update_notification.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/update_notification/update_notification.js b/src/components/update_notification/update_notification.js index da3e1876..172be889 100644 --- a/src/components/update_notification/update_notification.js +++ b/src/components/update_notification/update_notification.js @@ -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 () { |
