diff options
| author | Ilja <ilja@ilja.space> | 2022-03-20 09:53:57 +0100 |
|---|---|---|
| committer | Ilja <ilja@ilja.space> | 2022-03-20 09:53:57 +0100 |
| commit | d0bfd9a80826a7cdb37e1a84cf70ab8a44c3579e (patch) | |
| tree | 4a0fbf2367e7bb8f4d2e71cb2499f15416bf97ef /src/components/status_body/status_body.js | |
| parent | f9393b0dab22279e9bdb97a1cf52fecfe278a4a7 (diff) | |
| parent | 6f1d953642473412c094e5b723eb479e2b19a542 (diff) | |
Merge branch 'develop' of https://git.pleroma.social/pleroma/pleroma-fe into feat/report-notification
Diffstat (limited to 'src/components/status_body/status_body.js')
| -rw-r--r-- | src/components/status_body/status_body.js | 16 |
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) { |
