fix poll labels always assuming relative time format
This commit is contained in:
parent
225352e090
commit
fef9121fce
4 changed files with 41 additions and 37 deletions
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue