fixed being unable to mute/unmute domains from status context menu
This commit is contained in:
parent
03b6178d17
commit
949aa90faa
2 changed files with 5 additions and 5 deletions
|
|
@ -19,9 +19,9 @@ export default {
|
|||
},
|
||||
keypath () {
|
||||
if (this.type === 'domain') {
|
||||
return 'status.mute_domain_confirm'
|
||||
return 'user_card.mute_domain_confirm'
|
||||
} else if (this.type === 'conversation') {
|
||||
return 'status.mute_conversation_confirm'
|
||||
return 'user_card.mute_conversation_confirm'
|
||||
}
|
||||
},
|
||||
conversationIsMuted () {
|
||||
|
|
@ -62,9 +62,9 @@ export default {
|
|||
switch (this.type) {
|
||||
case 'domain': {
|
||||
if (!this.domainIsMuted) {
|
||||
this.$store.dispatch('muteDomain', { id: this.domain })
|
||||
this.$store.dispatch('muteDomain', this.domain)
|
||||
} else {
|
||||
this.$store.dispatch('unmuteDomain', { id: this.domain })
|
||||
this.$store.dispatch('unmuteDomain', this.domain)
|
||||
}
|
||||
break
|
||||
}
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ export default {
|
|||
return this.$store.dispatch('unmuteConversation', { id: this.status.id })
|
||||
},
|
||||
unmuteDomain () {
|
||||
return this.$store.dispatch('unmuteDomain', this.user.id)
|
||||
return this.$store.dispatch('unmuteDomain', this.domain)
|
||||
},
|
||||
toggleUserMute () {
|
||||
if (this.userIsMuted) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue