show expiry only if available
This commit is contained in:
parent
9f0b65654e
commit
35c2e87131
6 changed files with 16 additions and 5 deletions
|
|
@ -13,6 +13,9 @@ const MuteCard = {
|
|||
muted () {
|
||||
return this.relationship.muting
|
||||
},
|
||||
muteExpiryAvailable () {
|
||||
return this.user.mute_expires_at !== undefined
|
||||
},
|
||||
muteExpiry () {
|
||||
return this.user.mute_expires_at == null
|
||||
? this.$t('user_card.mute_expires_forever')
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<basic-user-card :user="user">
|
||||
<div class="mute-card-content-container">
|
||||
<span v-if="muted" class="alert neutral">
|
||||
<span v-if="muted && muteExpiryAvailable" class="alert neutral">
|
||||
{{ muteExpiry }}
|
||||
</span>
|
||||
{{ ' ' }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue