From 8b56db177bd2b1c7356d4e27cd5611a9cb6d7510 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 4 Aug 2022 02:12:04 +0300 Subject: [PATCH] debug handlers for now --- .../update_notification/update_notification.js | 11 ++++++----- .../update_notification/update_notification.vue | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/update_notification/update_notification.js b/src/components/update_notification/update_notification.js index 1dd771ebc8..da3e18768f 100644 --- a/src/components/update_notification/update_notification.js +++ b/src/components/update_notification/update_notification.js @@ -16,7 +16,7 @@ const UpdateNotification = { data () { return { pleromaTanVariant: Math.random() > 0.5 ? pleromaTan : pleromaTanFox, - showingMore: true, + showingMore: false, contentHeight: 0 } }, @@ -39,13 +39,14 @@ const UpdateNotification = { this.showingMore = !this.showingMore }, neverShowAgain () { - this.$store.commit('setFlag', { flag: 'updateCounter', value: CURRENT_UPDATE_COUNTER }) - this.$store.commit('setFlag', { flag: 'dontShowUpdateNotifs', value: 1 }) - this.$store.dispatch('pushServerSideStorage') + this.toggleShow() + // 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 () { diff --git a/src/components/update_notification/update_notification.vue b/src/components/update_notification/update_notification.vue index 793966eba3..07e91ec953 100644 --- a/src/components/update_notification/update_notification.vue +++ b/src/components/update_notification/update_notification.vue @@ -40,7 +40,7 @@