aboutsummaryrefslogtreecommitdiff
path: root/src/components/status/status.js
diff options
context:
space:
mode:
authorVivian Lim <vivlim@pm.me>2018-06-27 22:43:22 -0700
committerVivian Lim <vvnl@pm.me>2018-06-28 23:39:01 -0700
commit0554cac113555b948cdad3d9f14ec6f548c93c01 (patch)
treec5a0f283289dfa7a370e16ef6f87104c99e39faa /src/components/status/status.js
parentc07adb71212e6ffe73deb58f0efade8264e7f7b9 (diff)
Add click-to-show content warnings on posts
Diffstat (limited to 'src/components/status/status.js')
-rw-r--r--src/components/status/status.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js
index 87ef90d8..9f88d38c 100644
--- a/src/components/status/status.js
+++ b/src/components/status/status.js
@@ -28,7 +28,8 @@ const Status = {
userExpanded: false,
preview: null,
showPreview: false,
- showingTall: false
+ showingTall: false,
+ showingContentWarningContent: false
}),
computed: {
muteWords () {
@@ -145,6 +146,9 @@ const Status = {
toggleShowTall () {
this.showingTall = !this.showingTall
},
+ toggleContentWarningContent () {
+ this.showingContentWarningContent = !this.showingContentWarningContent
+ },
replyEnter (id, event) {
this.showPreview = true
const targetId = Number(id)