diff options
author | Joas Schilling <coding@schilljs.com> | 2021-07-05 16:27:09 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-08-24 17:55:34 +0300 |
commit | d0f039ba29facb49ba42741fca8510206514402a (patch) | |
tree | 243934ff1eb23b31f07fa59a786d77adb2a7fd1b /src | |
parent | 3d34a71b579ea0f8b77819777958026e9b9050e9 (diff) |
Sort circles below groups in the participant list
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/RightSidebar/Participants/CurrentParticipants/CurrentParticipants.vue | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/components/RightSidebar/Participants/CurrentParticipants/CurrentParticipants.vue b/src/components/RightSidebar/Participants/CurrentParticipants/CurrentParticipants.vue index 015c0295f..f8415f089 100644 --- a/src/components/RightSidebar/Participants/CurrentParticipants/CurrentParticipants.vue +++ b/src/components/RightSidebar/Participants/CurrentParticipants/CurrentParticipants.vue @@ -137,6 +137,14 @@ export default { * @return {number} */ sortParticipants(participant1, participant2) { + const p1IsCircle = participant1.actorType === ATTENDEE.ACTOR_TYPE.CIRCLES + const p2IsCircle = participant2.actorType === ATTENDEE.ACTOR_TYPE.CIRCLES + + if (p1IsCircle !== p2IsCircle) { + // Circles below participants and groups + return p2IsCircle ? -1 : 1 + } + const p1IsGroup = participant1.actorType === ATTENDEE.ACTOR_TYPE.GROUPS const p2IsGroup = participant2.actorType === ATTENDEE.ACTOR_TYPE.GROUPS |