logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 8b56db177bd2b1c7356d4e27cd5611a9cb6d7510
parent dbfca224d812c2ba80a48852ba047bb65c4c6dd9
Author: Henry Jameson <me@hjkos.com>
Date:   Thu,  4 Aug 2022 02:12:04 +0300

debug handlers for now

Diffstat:

Msrc/components/update_notification/update_notification.js11++++++-----
Msrc/components/update_notification/update_notification.vue2+-
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 @@ -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 @@ -40,7 +40,7 @@ </button> <button class="button-default" - @click.prevent="toggleShowMore" + @click.prevent="toggleShow" v-if="!showingMore" > {{ $t("general.show_more") }}