aboutsummaryrefslogtreecommitdiff
path: root/src/components/mute_card/mute_card.js
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2020-05-12 17:36:05 +0000
committerShpuld Shpludson <shp@cock.li>2020-05-12 17:36:05 +0000
commit5d49edc823ba2ea3e34d4fd6c5efcc84ef9712f7 (patch)
treef4a7a9c10d00083b36fb331c1d9196dc391dcfc7 /src/components/mute_card/mute_card.js
parenta0f780c4550b77d4574e0de8932a2dff288784a3 (diff)
parent0bc0a8d5f51f88858a7347b915361c45ff819292 (diff)
Merge branch 'rc/2.0.5' into 'master'
Update MASTER for 2.0.5 patch See merge request pleroma/pleroma-fe!1105
Diffstat (limited to 'src/components/mute_card/mute_card.js')
-rw-r--r--src/components/mute_card/mute_card.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/components/mute_card/mute_card.js b/src/components/mute_card/mute_card.js
index 65c9cfb5..cbec0e9b 100644
--- a/src/components/mute_card/mute_card.js
+++ b/src/components/mute_card/mute_card.js
@@ -11,8 +11,11 @@ const MuteCard = {
user () {
return this.$store.getters.findUser(this.userId)
},
+ relationship () {
+ return this.$store.getters.relationship(this.userId)
+ },
muted () {
- return this.user.muted
+ return this.relationship.muting
}
},
components: {
@@ -21,13 +24,13 @@ const MuteCard = {
methods: {
unmuteUser () {
this.progress = true
- this.$store.dispatch('unmuteUser', this.user.id).then(() => {
+ this.$store.dispatch('unmuteUser', this.userId).then(() => {
this.progress = false
})
},
muteUser () {
this.progress = true
- this.$store.dispatch('muteUser', this.user.id).then(() => {
+ this.$store.dispatch('muteUser', this.userId).then(() => {
this.progress = false
})
}