diff options
| author | lambda <pleromagit@rogerbraun.net> | 2018-07-12 05:52:54 +0000 |
|---|---|---|
| committer | lambda <pleromagit@rogerbraun.net> | 2018-07-12 05:52:54 +0000 |
| commit | 88c9ab44521d20d119a82684e7a55a0caf22ca17 (patch) | |
| tree | 0ae44ea013aeb0bf5c4fadf4e770b0d2694575bd /src/components/status/status.js | |
| parent | c07adb71212e6ffe73deb58f0efade8264e7f7b9 (diff) | |
| parent | 158342fc394b7fded6e25b8cb40516ccaff6ac26 (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.js | 9 |
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) |
