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 () {
|
keypath () {
|
||||||
if (this.type === 'domain') {
|
if (this.type === 'domain') {
|
||||||
return 'status.mute_domain_confirm'
|
return 'user_card.mute_domain_confirm'
|
||||||
} else if (this.type === 'conversation') {
|
} else if (this.type === 'conversation') {
|
||||||
return 'status.mute_conversation_confirm'
|
return 'user_card.mute_conversation_confirm'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
conversationIsMuted () {
|
conversationIsMuted () {
|
||||||
|
|
@ -62,9 +62,9 @@ export default {
|
||||||
switch (this.type) {
|
switch (this.type) {
|
||||||
case 'domain': {
|
case 'domain': {
|
||||||
if (!this.domainIsMuted) {
|
if (!this.domainIsMuted) {
|
||||||
this.$store.dispatch('muteDomain', { id: this.domain })
|
this.$store.dispatch('muteDomain', this.domain)
|
||||||
} else {
|
} else {
|
||||||
this.$store.dispatch('unmuteDomain', { id: this.domain })
|
this.$store.dispatch('unmuteDomain', this.domain)
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ export default {
|
||||||
return this.$store.dispatch('unmuteConversation', { id: this.status.id })
|
return this.$store.dispatch('unmuteConversation', { id: this.status.id })
|
||||||
},
|
},
|
||||||
unmuteDomain () {
|
unmuteDomain () {
|
||||||
return this.$store.dispatch('unmuteDomain', this.user.id)
|
return this.$store.dispatch('unmuteDomain', this.domain)
|
||||||
},
|
},
|
||||||
toggleUserMute () {
|
toggleUserMute () {
|
||||||
if (this.userIsMuted) {
|
if (this.userIsMuted) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue