Add click-to-show content warnings on posts
This commit is contained in:
parent
c07adb7121
commit
0554cac113
2 changed files with 26 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue