Commit 45b9f1a8 authored by Edijs Bov's avatar Edijs Bov

Rename event

parent 4c8038cc
Pipeline #8406 passed with stages
in 3 minutes and 43 seconds
......@@ -15,7 +15,9 @@ const statusOrConversation = {
methods: {
toggleExpanded () {
this.expanded = !this.expanded
this.$emit('toggle-expanded', this.expanded ? 1 : -1)
// Update count of expanded statuses. Only used for mobile view.
this.$emit('count-expanded-status', this.expanded ? 1 : -1)
},
collapse () {
this.expanded = false
......
......@@ -24,7 +24,7 @@
class="status-fadein"
v-for="status in timeline.visibleStatuses"
:key="status.id" v-bind:statusoid="status"
@toggle-expanded="updateExpandedCount"
@count-expanded-status="updateExpandedCount"
>
</status-or-conversation>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment