debug handlers for now
This commit is contained in:
parent
dbfca224d8
commit
8b56db177b
|
@ -16,7 +16,7 @@ const UpdateNotification = {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
pleromaTanVariant: Math.random() > 0.5 ? pleromaTan : pleromaTanFox,
|
pleromaTanVariant: Math.random() > 0.5 ? pleromaTan : pleromaTanFox,
|
||||||
showingMore: true,
|
showingMore: false,
|
||||||
contentHeight: 0
|
contentHeight: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -39,13 +39,14 @@ const UpdateNotification = {
|
||||||
this.showingMore = !this.showingMore
|
this.showingMore = !this.showingMore
|
||||||
},
|
},
|
||||||
neverShowAgain () {
|
neverShowAgain () {
|
||||||
this.$store.commit('setFlag', { flag: 'updateCounter', value: CURRENT_UPDATE_COUNTER })
|
this.toggleShow()
|
||||||
this.$store.commit('setFlag', { flag: 'dontShowUpdateNotifs', value: 1 })
|
// this.$store.commit('setFlag', { flag: 'updateCounter', value: CURRENT_UPDATE_COUNTER })
|
||||||
this.$store.dispatch('pushServerSideStorage')
|
// this.$store.commit('setFlag', { flag: 'dontShowUpdateNotifs', value: 1 })
|
||||||
|
// this.$store.dispatch('pushServerSideStorage')
|
||||||
},
|
},
|
||||||
dismiss () {
|
dismiss () {
|
||||||
this.$store.commit('setFlag', { flag: 'updateCounter', value: CURRENT_UPDATE_COUNTER })
|
this.$store.commit('setFlag', { flag: 'updateCounter', value: CURRENT_UPDATE_COUNTER })
|
||||||
this.$store.dispatch('pushServerSideStorage')
|
// this.$store.dispatch('pushServerSideStorage')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
class="button-default"
|
class="button-default"
|
||||||
@click.prevent="toggleShowMore"
|
@click.prevent="toggleShow"
|
||||||
v-if="!showingMore"
|
v-if="!showingMore"
|
||||||
>
|
>
|
||||||
{{ $t("general.show_more") }}
|
{{ $t("general.show_more") }}
|
||||||
|
|
Loading…
Reference in New Issue