fix poll labels always assuming relative time format

This commit is contained in:
Henry Jameson 2025-03-13 12:52:37 +02:00
commit fef9121fce
4 changed files with 41 additions and 37 deletions

View file

@ -45,6 +45,13 @@ export default {
expired () {
return (this.poll && this.poll.expired) || false
},
expirationLabel () {
if (this.$store.getters.mergedConfig.useAbsoluteTimeFormat) {
return this.expired ? 'polls.expired_at' : 'polls.expires_at'
} else {
return this.expired ? 'polls.expired' : 'polls.expires_in'
}
},
loggedIn () {
return this.$store.state.users.currentUser
},