aboutsummaryrefslogtreecommitdiff
path: root/src/components/status_body/status_body.js
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2022-03-13 17:31:46 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2022-03-13 17:31:46 +0000
commite34d71fc1f64fde73e435262979e5e93ebd37df2 (patch)
tree8b43c0e6f070c7f5a5fd72d1fcc986ca52524ed2 /src/components/status_body/status_body.js
parent89efb0d2f4ab41eb020e6a6b7bb14dbe20e53157 (diff)
parent551b8f3690bab1f53ec22ccf6963009a30fa45d0 (diff)
Merge branch 'from/develop/tusooa/tree-threading' into 'develop'
Add the option to display threads as trees See merge request pleroma/pleroma-fe!1407
Diffstat (limited to 'src/components/status_body/status_body.js')
-rw-r--r--src/components/status_body/status_body.js16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/components/status_body/status_body.js b/src/components/status_body/status_body.js
index 91c33135..b8f6f9a0 100644
--- a/src/components/status_body/status_body.js
+++ b/src/components/status_body/status_body.js
@@ -26,14 +26,16 @@ const StatusContent = {
'focused',
'noHeading',
'fullContent',
- 'singleLine'
+ 'singleLine',
+ 'showingTall',
+ 'expandingSubject',
+ 'showingLongSubject',
+ 'toggleShowingTall',
+ 'toggleExpandingSubject',
+ 'toggleShowingLongSubject'
],
data () {
return {
- showingTall: this.fullContent || (this.inConversation && this.focused),
- showingLongSubject: false,
- // not as computed because it sets the initial state which will be changed later
- expandingSubject: !this.$store.getters.mergedConfig.collapseMessageWithSubject,
postLength: this.status.text.length,
parseReadyDone: false
}
@@ -115,9 +117,9 @@ const StatusContent = {
},
toggleShowMore () {
if (this.mightHideBecauseTall) {
- this.showingTall = !this.showingTall
+ this.toggleShowingTall()
} else if (this.mightHideBecauseSubject) {
- this.expandingSubject = !this.expandingSubject
+ this.toggleExpandingSubject()
}
},
generateTagLink (tag) {