show expiry only if available
This commit is contained in:
parent
9f0b65654e
commit
35c2e87131
6 changed files with 16 additions and 5 deletions
|
|
@ -159,11 +159,17 @@ export default {
|
|||
supportsNote () {
|
||||
return 'note' in this.relationship
|
||||
},
|
||||
muteExpiryAvailable () {
|
||||
return this.user.mute_expires_at !== undefined
|
||||
},
|
||||
muteExpiry () {
|
||||
return this.user.mute_expires_at == null
|
||||
? this.$t('user_card.mute_expires_forever')
|
||||
: this.$t('user_card.mute_expires_at', [new Date(this.user.mute_expires_at).toLocaleString()])
|
||||
},
|
||||
blockExpiryAvailable () {
|
||||
return this.user.block_expires_at !== undefined
|
||||
},
|
||||
blockExpiry () {
|
||||
return this.user.block_expires_at == null
|
||||
? this.$t('user_card.block_expires_forever')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue