Skip to content

Commit

Permalink
Merge pull request #11544 from nextcloud/fix/11512/component-rendering
Browse files Browse the repository at this point in the history
fix(Participant): Add key in order to force re-rendering
  • Loading branch information
DorraJaouad authored Feb 9, 2024
2 parents 357aeb0 + 2077ffc commit c578eb8
Showing 1 changed file with 22 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -149,6 +149,7 @@
<!-- Grant or revoke lobby permissions (inline button) -->
<template v-if="showToggleLobbyAction">
<NcActionButton v-if="canSkipLobby"
key="lobby-permission-skip"
close-after-click
@click="setLobbyPermission(false)">
<template #icon>
@@ -157,6 +158,7 @@
{{ t('spreed', 'Move back to lobby') }}
</NcActionButton>
<NcActionButton v-else
key="lobby-permission-join"
close-after-click
@click="setLobbyPermission(true)">
<template #icon>
@@ -167,6 +169,7 @@
</template>
<!-- Grant or revoke moderator permissions -->
<NcActionButton v-if="canBeDemoted"
key="demote-moderator"
close-after-click
@click="demoteFromModerator">
<template #icon>
@@ -175,6 +178,7 @@
{{ t('spreed', 'Demote from moderator') }}
</NcActionButton>
<NcActionButton v-else-if="canBePromoted"
key="promote-moderator"
close-after-click
@click="promoteToModerator">
<template #icon>
@@ -183,6 +187,7 @@
{{ t('spreed', 'Promote to moderator') }}
</NcActionButton>
<NcActionButton v-if="canBeModerated && isEmailActor"
key="resend-invitation"
close-after-click
@click="resendInvitation">
<template #icon>
@@ -191,6 +196,7 @@
{{ t('spreed', 'Resend invitation') }}
</NcActionButton>
<NcActionButton v-if="canSendCallNotification"
key="send-call-notification"
close-after-click
@click="sendCallNotification">
<template #icon>
@@ -200,6 +206,7 @@
</NcActionButton>
<template v-if="canBeModerated && isPhoneActor">
<NcActionButton v-if="!conversation.hasCall && !isInCall && !participant.callId"
key="dial-out-phone-number"
close-after-click
@click="dialOutPhoneNumber">
<template #icon>
@@ -209,6 +216,7 @@
</NcActionButton>
<template v-else-if="isInCall && participant.callId">
<NcActionButton v-if="phoneMuteState === 'hold'"
key="resume-call-phone-number"
close-after-click
@click="unmutePhoneNumber">
<template #icon>
@@ -217,14 +225,16 @@
{{ t('spreed', 'Resume call for phone number') }}
</NcActionButton>
<template v-else>
<NcActionButton close-after-click
<NcActionButton key="hold-call-phone-number"
close-after-click
@click="holdPhoneNumber">
<template #icon>
<PhonePaused :size="20" />
</template>
{{ t('spreed', 'Put phone number on hold') }}
</NcActionButton>
<NcActionButton v-if="phoneMuteState === 'muted'"
key="unmute-call-phone-number"
close-after-click
@click="unmutePhoneNumber">
<template #icon>
@@ -233,6 +243,7 @@
{{ t('spreed', 'Unmute phone number') }}
</NcActionButton>
<NcActionButton v-else
key="mute-call-phone-number"
close-after-click
@click="mutePhoneNumber">
<template #icon>
@@ -242,7 +253,8 @@
</NcActionButton>
</template>
</template>
<NcActionButton close-after-click
<NcActionButton key="copy-phone-number"
close-after-click
@click="copyPhoneNumber">
<template #icon>
<ContentCopy :size="20" />
@@ -255,28 +267,32 @@
<template v-if="showPermissionsOptions">
<NcActionSeparator />
<NcActionButton v-if="hasNonDefaultPermissions"
key="reset-permissions"
close-after-click
@click="applyDefaultPermissions">
<template #icon>
<LockReset :size="20" />
</template>
{{ t('spreed', 'Reset custom permissions') }}
</NcActionButton>
<NcActionButton close-after-click
<NcActionButton key="grant-all-permissions"
close-after-click
@click="grantAllPermissions">
<template #icon>
<LockOpenVariant :size="20" />
</template>
{{ t('spreed', 'Grant all permissions') }}
</NcActionButton>
<NcActionButton close-after-click
<NcActionButton key="remove-all-permissions"
close-after-click
@click="removeAllPermissions">
<template #icon>
<Lock :size="20" />
</template>
{{ t('spreed', 'Remove all permissions') }}
</NcActionButton>
<NcActionButton close-after-click
<NcActionButton key="edit-permissions"
close-after-click
@click="showPermissionsEditor">
<template #icon>
<Pencil :size="20" />
@@ -288,6 +304,7 @@
<!-- Remove -->
<NcActionSeparator v-if="canBeModerated && showPermissionsOptions" />
<NcActionButton v-if="canBeModerated"
key="remove-participant"
close-after-click
@click="removeParticipant">
<template #icon>

0 comments on commit c578eb8

Please sign in to comment.