Selaa lähdekoodia

fix(participants-pane) bring back lobby reject button

It got accidentally removed in:
1dc8bfa631 (diff-ef66b8ab7c899b16d6c1102b3c812aa45509f95e11267cbfdbd0674143e94575)
master
Saúl Ibarra Corretgé 4 vuotta sitten
vanhempi
commit
4473ce8fb6

+ 6
- 1
react/features/participants-pane/components/web/LobbyParticipantItem.js Näytä tiedosto

33
     openDrawerForParticipant
33
     openDrawerForParticipant
34
 }: Props) => {
34
 }: Props) => {
35
     const { id } = p;
35
     const { id } = p;
36
-    const [ admit ] = useLobbyActions({ participantID: id });
36
+    const [ admit, reject ] = useLobbyActions({ participantID: id });
37
     const { t } = useTranslation();
37
     const { t } = useTranslation();
38
 
38
 
39
     return (
39
     return (
48
             raisedHand = { p.raisedHand }
48
             raisedHand = { p.raisedHand }
49
             videoMediaState = { MEDIA_STATE.NONE }
49
             videoMediaState = { MEDIA_STATE.NONE }
50
             youText = { t('chat.you') }>
50
             youText = { t('chat.you') }>
51
+            <ParticipantActionButton
52
+                onClick = { reject }
53
+                primary = { false }>
54
+                {t('lobby.reject')}
55
+            </ParticipantActionButton>
51
             <ParticipantActionButton
56
             <ParticipantActionButton
52
                 onClick = { admit }
57
                 onClick = { admit }
53
                 primary = { true }>
58
                 primary = { true }>

Loading…
Peruuta
Tallenna