aboutsummaryrefslogtreecommitdiff
path: root/src/components/status/status.js
diff options
context:
space:
mode:
authorlambda <pleromagit@rogerbraun.net>2018-07-12 05:52:54 +0000
committerlambda <pleromagit@rogerbraun.net>2018-07-12 05:52:54 +0000
commit88c9ab44521d20d119a82684e7a55a0caf22ca17 (patch)
tree0ae44ea013aeb0bf5c4fadf4e770b0d2694575bd /src/components/status/status.js
parentc07adb71212e6ffe73deb58f0efade8264e7f7b9 (diff)
parent158342fc394b7fded6e25b8cb40516ccaff6ac26 (diff)
Merge branch 'cw-clickthrough' into 'develop'
Add click-to-show content warnings on posts See merge request pleroma/pleroma-fe!291
Diffstat (limited to 'src/components/status/status.js')
-rw-r--r--src/components/status/status.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js
index 87ef90d8..40786d94 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 () {
@@ -92,6 +93,9 @@ const Status = {
return 'small'
}
return 'normal'
+ },
+ clickThroughContentWarningsEnabled () {
+ return this.$store.state.config.clickThroughContentWarningsEnabled
}
},
components: {
@@ -145,6 +149,9 @@ const Status = {
toggleShowTall () {
this.showingTall = !this.showingTall
},
+ toggleContentWarningContent () {
+ this.showingContentWarningContent = !this.showingContentWarningContent
+ },
replyEnter (id, event) {
this.showPreview = true
const targetId = Number(id)