diff options
| author | Henry Jameson <me@hjkos.com> | 2022-08-04 02:12:04 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-08-04 02:12:04 +0300 |
| commit | 8b56db177bd2b1c7356d4e27cd5611a9cb6d7510 (patch) | |
| tree | 48e1981b3722f2a175b5238aab5466ce4f53deca /src | |
| parent | dbfca224d812c2ba80a48852ba047bb65c4c6dd9 (diff) | |
debug handlers for now
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/update_notification/update_notification.js | 11 | ||||
| -rw-r--r-- | src/components/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 1dd771eb..da3e1876 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 793966eb..07e91ec9 100644 --- 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") }} |
