Skip to content

Commit

Permalink
fixup! add ParticipantsListVirtual.vue component
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Sep 14, 2023
1 parent c5b21b3 commit 1ffd728
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
-->

<template>
<li :data-nav-id="participantNavigationId"
<component :is="tag"
:data-nav-id="participantNavigationId"
class="participant-row"
:class="{
'offline': isOffline,
Expand Down Expand Up @@ -201,7 +202,7 @@
@close="hidePermissionsEditor" />
<!-- Checkmark in case the current participant is selected -->
<div v-if="isSelected" class="icon-checkmark participant-row__utils utils__checkmark" />
</li>
</component>
</template>

<script>
Expand Down Expand Up @@ -275,6 +276,11 @@ export default {
],

props: {
tag: {
type: String,
default: 'li',
},

participant: {
type: Object,
required: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@

<template>
<RecycleScroller ref="scroller"
item-tag="ul"
list-tag="ul"
item-tag="li"
:items="participants"
:item-size="PARTICIPANT_ITEM_SIZE"
key-field="attendeeId">
<template #default="{ item }">
<Participant :participant="item" />
<Participant :participant="item" tag="div" />
</template>
<template v-if="loading" #after>
<!-- FIXME temporary placeholder until #10489 -->
Expand Down

0 comments on commit 1ffd728

Please sign in to comment.