From 8c59bad3c2444e7deea20f9d301b675d2ef51016 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 4 Aug 2022 22:09:42 +0300 Subject: unit test + some refactoring --- src/components/update_notification/update_notification.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/components/update_notification') 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 () { -- cgit v1.2.3-70-g09d2