diff options
author | Kushal Pandya <kushal@gitlab.com> | 2018-05-03 15:05:17 +0530 |
---|---|---|
committer | Kushal Pandya <kushal@gitlab.com> | 2018-05-03 16:34:03 +0530 |
commit | e164447bf1c110f2b0df2589c4a7be1388d07151 (patch) | |
tree | d52148da6ad7b8f1e55cf9f877c52482f389a768 /app | |
parent | 342fbbdaa2f7bdf2ac9cecdbcce55ae0f3f09485 (diff) | |
download | gitlab-ce-e164447bf1c110f2b0df2589c4a7be1388d07151.tar.gz |
Emit `toggleSidebar` event on component when icon is clicked
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/sidebar/components/participants/participants.vue | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/sidebar/components/participants/participants.vue b/app/assets/javascripts/sidebar/components/participants/participants.vue index 6d95153af28..8f9e6761d20 100644 --- a/app/assets/javascripts/sidebar/components/participants/participants.vue +++ b/app/assets/javascripts/sidebar/components/participants/participants.vue @@ -70,6 +70,9 @@ toggleMoreParticipants() { this.isShowingMoreParticipants = !this.isShowingMoreParticipants; }, + onClickCollapsedIcon() { + this.$emit('toggleSidebar'); + }, }, }; </script> @@ -82,6 +85,7 @@ data-container="body" data-placement="left" :title="participantLabel" + @click="onClickCollapsedIcon" > <i class="fa fa-users" |