diff options
| author | Shpuld Shpludson <shp@cock.li> | 2020-05-08 09:14:26 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2020-05-08 09:14:26 +0000 |
| commit | 47c56ffa1c8509ed323602f54be34328e9105419 (patch) | |
| tree | c439d51bcc3a5a972fc763ab96ade4cee9bed7a1 /src/components/mute_card/mute_card.js | |
| parent | 921eedfd84007da72619a553ba8d074076559e7a (diff) | |
| parent | 1186205583715b187bb4e503dc35e8c0644cfc7e (diff) | |
Merge branch 'feat/relationship-refactor' into 'develop'
Refactor: make relationships separate from users
Closes #819
See merge request pleroma/pleroma-fe!1091
Diffstat (limited to 'src/components/mute_card/mute_card.js')
| -rw-r--r-- | src/components/mute_card/mute_card.js | 9 |
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 }) } |
