Skip to content

Commit c52f25f

Browse files
juliusknorrbackportbot[bot]
authored andcommitted
perf: Hide user status on avatars where they are not needed
Signed-off-by: Julius Knorr <[email protected]>
1 parent 2fe1cbf commit c52f25f

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

src/components/Controls.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@
122122
class="checkbox"
123123
:value="user.uid"
124124
@change="setFilter">
125-
<label :for="user.uid"><NcAvatar :user="user.uid" :size="24" :disable-menu="true" /> {{ user.displayname }}</label>
125+
<label :for="user.uid"><NcAvatar :user="user.uid"
126+
:size="24"
127+
:disable-menu="true"
128+
:hide-status="true" /> {{ user.displayname }}</label>
126129
</div>
127130

128131
<h3>{{ t('deck', 'Filter by status') }}</h3>

src/components/SessionList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<NcAvatar :user="session.uid"
1414
:display-name="session.displayname"
1515
:disable-menu="true"
16-
:show-user-status="false"
16+
:hide-status="true"
1717
:disable-tooltip="true"
1818
:size="size" />
1919
</div>

src/components/boards/BoardItem.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,14 @@
1616
{{ board.title }}
1717
</div>
1818
<div class="board-list-avatars-cell" title="">
19-
<NcAvatar :user="board.owner.uid" :display-name="board.owner.displayname" class="board-list-avatar" />
19+
<NcAvatar :user="board.owner.uid"
20+
:display-name="board.owner.displayname"
21+
class="board-list-avatar"
22+
:hide-status="true" />
2023
<NcAvatar v-for="user in limitedAcl"
2124
:key="user.id"
2225
:user="user.participant.uid"
26+
:hide-status="true"
2327
:display-name="user.participant.displayname"
2428
class="board-list-avatar" />
2529
<div v-if="board.acl.length > 5" :title="otherAcl" class="avatardiv popovermenu-wrapper board-list-avatar icon-more" />

src/components/cards/AvatarList.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
:user="user.participant.uid"
1818
:display-name="user.participant.displayname"
1919
:disable-menu="true"
20-
:show-user-status="false"
20+
:hide-status="true"
2121
:size="32" />
2222
<NcAvatar v-if="user.type === 1"
2323
:user="user.participant.uid"
@@ -42,6 +42,7 @@
4242
class="avatar-list-entry">
4343
<NcAvatar :user="user.participant.uid"
4444
:display-name="user.participant.displayname"
45+
:hide-status="true"
4546
:disable-menu="true"
4647
:is-no-user="user.type !== 0"
4748
:size="32" />
@@ -59,6 +60,7 @@
5960
:user="user.participant.uid"
6061
:display-name="user.participant.displayname"
6162
:disable-menu="true"
63+
:hide-status="true"
6264
:is-no-user="user.type !== 0"
6365
:size="24" />
6466
{{ user.participant.displayname }}

0 commit comments

Comments
 (0)