Redraw ago datetime every minute

This commit is contained in:
Eliot Berriot 2018-03-01 23:46:32 +01:00
parent 2d12c56b90
commit 40350f0555
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 32 additions and 2 deletions

View file

@ -44,6 +44,10 @@ export default {
},
created () {
this.$store.dispatch('instance/fetchSettings')
setInterval(() => {
// used to redraw ago dates every minute
self.$store.commit('ui/computeLastDate')
}, 1000 * 60)
}
}
</script>