aboutsummaryrefslogtreecommitdiff
path: root/src/components/conversation/conversation.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/conversation/conversation.js')
-rw-r--r--src/components/conversation/conversation.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/components/conversation/conversation.js b/src/components/conversation/conversation.js
index 4c429161..423930af 100644
--- a/src/components/conversation/conversation.js
+++ b/src/components/conversation/conversation.js
@@ -224,6 +224,9 @@ const conversation = {
debug('toplevel =', topLevel)
return topLevel
},
+ otherTopLevelCount () {
+ return this.topLevel.length - 1
+ },
showingTopLevel () {
if (this.canDive && this.diveRoot) {
return [this.statusMap[this.diveRoot]]
@@ -242,6 +245,11 @@ const conversation = {
diveMode () {
return this.canDive && !!this.diveRoot
},
+ shouldShowAllConversationButton () {
+ // The "show all conversation" button tells the user that there exist
+ // other toplevel statuses, so do not show it if there is only a single root
+ return this.diveMode && this.topLevel.length > 1
+ },
replies () {
let i = 1
// eslint-disable-next-line camelcase