method instead of weird computed

This commit is contained in:
Henry Jameson 2025-05-13 17:53:11 +03:00
commit 8fa2781745

View file

@ -339,11 +339,6 @@ const conversation = {
canDive () {
return this.isTreeView && this.isExpanded
},
focused () {
return (id) => {
return (this.isExpanded) && id === this.highlight
}
},
maybeHighlight () {
return this.isExpanded ? this.highlight : null
},
@ -406,6 +401,9 @@ const conversation = {
})
}
},
isFocused (id) {
return (this.isExpanded) && id === this.highlight
},
getReplies (id) {
return this.replies[id] || []
},