Skip to content

Commit 85064d3

Browse files
authored
Merge pull request #19105 from nextcloud/backport/19098/stable35
[stable35] fix: hide participants tab in changelog, restore icons title
2 parents 9c7d5bf + ee3fc86 commit 85064d3

6 files changed

Lines changed: 36 additions & 23 deletions

File tree

src/components/AdminSettings/StunServer.vue

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@
2121
labelOutside />
2222
</div>
2323

24-
<IconAlertCircleOutline
24+
<span
2525
v-show="!isValidServer"
2626
class="stun-server__alert"
27-
:title="t('spreed', 'The server address is invalid')"
28-
fillColor="var(--color-border-error)" />
27+
:title="t('spreed', 'The server address is invalid')">
28+
<IconAlertCircleOutline fillColor="var(--color-border-error)" />
29+
</span>
2930

3031
<NcButton
3132
v-show="!loading"
@@ -135,6 +136,9 @@ export default {
135136
}
136137
137138
&__alert {
139+
display: flex;
140+
align-items: center;
141+
justify-content: center;
138142
width: var(--default-clickable-area);
139143
height: var(--default-clickable-area);
140144
}

src/components/MediaSettings/MediaDevicesSelector.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ function updateDeviceId(deviceId: NcSelectOption['id']) {
105105
<component
106106
:is="deviceIcon"
107107
class="media-devices-selector__icon"
108-
title=""
109108
:size="20" />
110109

111110
<NcSelect

src/components/RightSidebar/Participants/Participant.spec.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ describe('ParticipantItem.vue', () => {
182182
['Alice', 'guest-id', ATTENDEE.ACTOR_TYPE.EMAILS, PARTICIPANT.TYPE.GUEST, 'Alice(guest)'],
183183
['', 'guest-id', ATTENDEE.ACTOR_TYPE.GUESTS, PARTICIPANT.TYPE.GUEST, 'Guest(guest)'],
184184
// The role is rendered as an icon, its accessible name is part of the text content
185-
['Alice', 'alice', ATTENDEE.ACTOR_TYPE.USERS, PARTICIPANT.TYPE.OWNER, 'AliceOwner'],
186-
['Alice', 'alice', ATTENDEE.ACTOR_TYPE.USERS, PARTICIPANT.TYPE.MODERATOR, 'AliceModerator'],
187-
['Alice', 'guest-id', ATTENDEE.ACTOR_TYPE.GUESTS, PARTICIPANT.TYPE.GUEST_MODERATOR, 'AliceModerator(guest)'],
185+
['Alice', 'alice', ATTENDEE.ACTOR_TYPE.USERS, PARTICIPANT.TYPE.OWNER, 'Alice'],
186+
['Alice', 'alice', ATTENDEE.ACTOR_TYPE.USERS, PARTICIPANT.TYPE.MODERATOR, 'Alice'],
187+
['Alice', 'guest-id', ATTENDEE.ACTOR_TYPE.GUESTS, PARTICIPANT.TYPE.GUEST_MODERATOR, 'Alice(guest)'],
188188
['Bot', ATTENDEE.BRIDGE_BOT_ID, ATTENDEE.ACTOR_TYPE.USERS, PARTICIPANT.TYPE.USER, 'Bot(bot)'],
189189
]
190190

@@ -194,9 +194,9 @@ describe('ParticipantItem.vue', () => {
194194
['Alice', 'guest-id', ATTENDEE.ACTOR_TYPE.EMAILS, PARTICIPANT.TYPE.GUEST, 'Alice(guest)(in the lobby)'],
195195
['', 'guest-id', ATTENDEE.ACTOR_TYPE.GUESTS, PARTICIPANT.TYPE.GUEST, 'Guest(guest)(in the lobby)'],
196196
// Owners and moderators can skip the lobby, so they get no lobby badge
197-
['Alice', 'alice', ATTENDEE.ACTOR_TYPE.USERS, PARTICIPANT.TYPE.OWNER, 'AliceOwner'],
198-
['Alice', 'alice', ATTENDEE.ACTOR_TYPE.USERS, PARTICIPANT.TYPE.MODERATOR, 'AliceModerator'],
199-
['Alice', 'guest-id', ATTENDEE.ACTOR_TYPE.GUESTS, PARTICIPANT.TYPE.GUEST_MODERATOR, 'AliceModerator(guest)'],
197+
['Alice', 'alice', ATTENDEE.ACTOR_TYPE.USERS, PARTICIPANT.TYPE.OWNER, 'Alice'],
198+
['Alice', 'alice', ATTENDEE.ACTOR_TYPE.USERS, PARTICIPANT.TYPE.MODERATOR, 'Alice'],
199+
['Alice', 'guest-id', ATTENDEE.ACTOR_TYPE.GUESTS, PARTICIPANT.TYPE.GUEST_MODERATOR, 'Alice(guest)'],
200200
]
201201

202202
it.each([

src/components/RightSidebar/Participants/ParticipantItem.vue

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,13 @@
3232
<!-- First line: participant's name and type -->
3333
<span class="participant__user">
3434
<span class="participant__user-name" :title="userNameTitle">{{ computedName }}</span>
35-
<IconCrownOutline
36-
v-if="showOwnerIcon"
35+
<span
36+
v-if="showOwnerIcon || showModeratorIcon"
3737
class="participant__user-icon"
38-
:size="16"
39-
:title="ownerIconLabel" />
40-
<IconShieldOutline
41-
v-else-if="showModeratorIcon"
42-
class="participant__user-icon"
43-
:size="16"
44-
:title="moderatorIconLabel" />
38+
:title="showOwnerIcon ? ownerIconLabel : moderatorIconLabel">
39+
<IconCrownOutline v-if="showOwnerIcon" :size="16" />
40+
<IconShieldOutline v-else :size="16" />
41+
</span>
4542
<span v-if="isBridgeBotUser" class="participant__user-badge">({{ t('spreed', 'bot') }})</span>
4643
<span v-if="isGuestActor || isEmailActor" class="participant__user-badge">({{ t('spreed', 'guest') }})</span>
4744
<span v-if="!isSelf && isLobbyEnabled && !canSkipLobby" class="participant__user-badge">({{ t('spreed', 'in the lobby') }})</span>
@@ -92,12 +89,12 @@
9289
</template>
9390

9491
<!-- Call state icon -->
95-
<component
96-
:is="callIcon.icon"
92+
<span
9793
v-else-if="callIcon"
9894
class="participant__call-state"
99-
:title="callIcon.title"
100-
:size="callIcon.size" />
95+
:title="callIcon.title">
96+
<component :is="callIcon.icon" :size="callIcon.size" />
97+
</span>
10198

10299
<!-- Grant or revoke lobby permissions (inline button) -->
103100
<template v-if="showToggleLobbyAction">

src/components/RightSidebar/Participants/ParticipantsTab.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,10 @@ export default {
241241
},
242242
243243
canAddPhones() {
244+
if (!this.canAdd) {
245+
return false
246+
}
247+
244248
const canModerateSipDialOut = hasTalkFeature(this.token, 'sip-support-dialout')
245249
&& getTalkConfig(this.token, 'call', 'enabled')
246250
&& getTalkConfig(this.token, 'call', 'sip-enabled')
@@ -250,6 +254,10 @@ export default {
250254
},
251255
252256
hintAddPhones() {
257+
if (!this.canAdd) {
258+
return false
259+
}
260+
253261
const canModerateSipDialOut = hasTalkFeature(this.token, 'sip-support-dialout')
254262
&& getTalkConfig(this.token, 'call', 'sip-enabled')
255263
&& getTalkConfig(this.token, 'call', 'sip-dialout-enabled')

src/components/RightSidebar/RightSidebar.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ export default {
370370
return (this.getUserId || this.isGuestModerator)
371371
&& (!this.isOneToOne || this.isInCall)
372372
&& !this.isNoteToSelf
373+
&& !this.isChangelog
373374
&& (!isChannelConversation(this.conversation) || this.$store.getters.isModerator)
374375
},
375376
@@ -385,6 +386,10 @@ export default {
385386
return this.conversation.type === CONVERSATION.TYPE.NOTE_TO_SELF
386387
},
387388
389+
isChangelog() {
390+
return this.conversation.type === CONVERSATION.TYPE.CHANGELOG
391+
},
392+
388393
breakoutRoomsText() {
389394
return t('spreed', 'Breakout rooms')
390395
},

0 commit comments

Comments
 (0)