debug handlers for now

This commit is contained in:
Henry Jameson 2022-08-04 02:12:04 +03:00
parent dbfca224d8
commit 8b56db177b
2 changed files with 7 additions and 6 deletions

View File

@ -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 () {

View File

@ -40,7 +40,7 @@
</button>
<button
class="button-default"
@click.prevent="toggleShowMore"
@click.prevent="toggleShow"
v-if="!showingMore"
>
{{ $t("general.show_more") }}