aboutsummaryrefslogtreecommitdiff
path: root/src/components/status_content/status_content.js
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2020-06-26 18:20:32 +0300
committerShpuld Shpuldson <shp@cock.li>2020-06-26 18:20:32 +0300
commit8c3106c588f964a8e26c69784d5808ad1f72625c (patch)
tree3b3973fb2c25f518726a819222902e9c1728552e /src/components/status_content/status_content.js
parent44edb730c1e2298a00be0c1a139f80a1335ad7cf (diff)
Change the show/hide strings about, remove subjected status toggle when 'collapse' option not used
Diffstat (limited to 'src/components/status_content/status_content.js')
-rw-r--r--src/components/status_content/status_content.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/status_content/status_content.js b/src/components/status_content/status_content.js
index 66501b3e..09ea3a20 100644
--- a/src/components/status_content/status_content.js
+++ b/src/components/status_content/status_content.js
@@ -48,10 +48,10 @@ const StatusContent = {
},
// When a status has a subject and is also tall, we should only have one show more/less button. If the default is to collapse statuses with subjects, we just treat it like a status with a subject; otherwise, we just treat it like a tall status.
mightHideBecauseSubject () {
- return this.status.summary && (!this.tallStatus || this.localCollapseSubjectDefault)
+ return !!this.status.summary && this.localCollapseSubjectDefault
},
mightHideBecauseTall () {
- return this.tallStatus && (!this.status.summary || !this.localCollapseSubjectDefault)
+ return this.tallStatus && !(this.status.summary && this.localCollapseSubjectDefault)
},
hideSubjectStatus () {
return this.mightHideBecauseSubject && !this.expandingSubject