biome format --write
This commit is contained in:
parent
8372348148
commit
9262e803ec
415 changed files with 54076 additions and 17419 deletions
|
|
@ -4,36 +4,38 @@ import UserTimedFilterModal from 'src/components/user_timed_filter_modal/user_ti
|
|||
const MuteCard = {
|
||||
props: ['userId'],
|
||||
computed: {
|
||||
user () {
|
||||
user() {
|
||||
return this.$store.getters.findUser(this.userId)
|
||||
},
|
||||
relationship () {
|
||||
relationship() {
|
||||
return this.$store.getters.relationship(this.userId)
|
||||
},
|
||||
muted () {
|
||||
muted() {
|
||||
return this.relationship.muting
|
||||
},
|
||||
muteExpiryAvailable () {
|
||||
muteExpiryAvailable() {
|
||||
return this.user.mute_expires_at !== undefined
|
||||
},
|
||||
muteExpiry () {
|
||||
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()])
|
||||
}
|
||||
: this.$t('user_card.mute_expires_at', [
|
||||
new Date(this.user.mute_expires_at).toLocaleString(),
|
||||
])
|
||||
},
|
||||
},
|
||||
components: {
|
||||
BasicUserCard,
|
||||
UserTimedFilterModal
|
||||
UserTimedFilterModal,
|
||||
},
|
||||
methods: {
|
||||
unmuteUser () {
|
||||
unmuteUser() {
|
||||
this.$store.dispatch('unmuteUser', this.userId)
|
||||
},
|
||||
muteUser () {
|
||||
muteUser() {
|
||||
this.$refs.timedMuteDialog.optionallyPrompt()
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
export default MuteCard
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue