diff --git a/bigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/component.jsx b/bigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/component.jsx index d8574b2c35bb..852ddced42c6 100755 --- a/bigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/component.jsx @@ -131,6 +131,7 @@ const VideoListItem = (props) => { isRTL={isRTL} isStream={isStream} onHandleDisableCam={() => setIsSelfViewDisabled((value) => !value)} + isSelfViewDisabled={isSelfViewDisabled} /> ); @@ -157,6 +158,7 @@ const VideoListItem = (props) => { isRTL={isRTL} isStream={isStream} onHandleDisableCam={() => setIsSelfViewDisabled((value) => !value)} + isSelfViewDisabled={isSelfViewDisabled} /> { isRTL={isRTL} isStream={isStream} onHandleDisableCam={() => setIsSelfViewDisabled((value) => !value)} + isSelfViewDisabled={isSelfViewDisabled} /> { const { name, cameraId, numOfStreams, onHandleVideoFocus, user, focused, onHandleMirror, - isVideoSqueezed, videoContainer, isRTL, isStream, + isVideoSqueezed, videoContainer, isRTL, isStream, isSelfViewDisabled, } = props; const intl = useIntl(); @@ -72,6 +75,7 @@ const UserActions = (props) => { const userId = user?.userId; const isPinnedIntlKey = !pinned ? 'pin' : 'unpin'; const isFocusedIntlKey = !focused ? 'focus' : 'unfocus'; + const enableSelfCamIntlKey = !isSelfViewDisabled ? 'disable' : 'enable'; const menuItems = []; @@ -107,8 +111,8 @@ const UserActions = (props) => { if (userId === Auth.userID && isStream) { menuItems.push({ key: `${cameraId}-disable`, - label: intl.formatMessage(intlMessages.disableLabel), - description: intl.formatMessage(intlMessages.disableDesc), + label: intl.formatMessage(intlMessages[`${enableSelfCamIntlKey}Label`]), + description: intl.formatMessage(intlMessages[`${enableSelfCamIntlKey}Label`]), onClick: () => toggleDisableCam(cameraId), dataTest: 'selfViewDisableBtn', }); diff --git a/bigbluebutton-html5/public/locales/en.json b/bigbluebutton-html5/public/locales/en.json index aef758fcaa12..65080debc0e8 100755 --- a/bigbluebutton-html5/public/locales/en.json +++ b/bigbluebutton-html5/public/locales/en.json @@ -1125,8 +1125,9 @@ "app.videoDock.webcamFocusDesc": "Focus the selected webcam", "app.videoDock.webcamUnfocusLabel": "Unfocus", "app.videoDock.webcamUnfocusDesc": "Unfocus the selected webcam", - "app.videoDock.webcamDisableLabel": "Disable/Enable self cam", - "app.videoDock.webcamDisableDesc": "Self cam disabled", + "app.videoDock.webcamDisableLabel": "Disable self-view", + "app.videoDock.webcamEnableLabel": "Enable self-view", + "app.videoDock.webcamDisableDesc": "Self-view disabled", "app.videoDock.webcamPinLabel": "Pin", "app.videoDock.webcamPinDesc": "Pin the selected webcam", "app.videoDock.webcamFullscreenLabel": "Fullscreen webcam",