diff options
| author | Roger Braun <roger@rogerbraun.net> | 2017-02-14 00:01:50 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2017-02-14 00:01:50 +0100 |
| commit | 4c12de262ff1ca9cde925195de20158c33f7bad0 (patch) | |
| tree | c09edcdd8459c99cb6f2708479d2927d91c0b2f2 /src/components/status/status.js | |
| parent | 66ef9f1328f155d50775d55445522c11cd17fa01 (diff) | |
Add muting to statuses.
Diffstat (limited to 'src/components/status/status.js')
| -rw-r--r-- | src/components/status/status.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js index 40589ea5..3d1d50fb 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -11,7 +11,8 @@ const Status = { ], data: () => ({ replying: false, - expanded: false + expanded: false, + unmuted: false }), computed: { retweet () { return !!this.statusoid.retweeted_status }, @@ -25,7 +26,8 @@ const Status = { }, loggedIn () { return !!this.$store.state.users.currentUser - } + }, + muted () { return !this.unmuted && this.status.user.muted } }, components: { Attachment, @@ -40,6 +42,9 @@ const Status = { }, toggleExpanded () { this.$emit('toggleExpanded') + }, + toggleMute () { + this.unmuted = !this.unmuted } } } |
