Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Add a toast warning you that your webcam is still streaming… #19062

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -7,6 +7,7 @@ import BBBMenu from '/imports/ui/components/common/menu/component';
import PropTypes from 'prop-types';
import Styled from './styles';
import Auth from '/imports/ui/services/auth';
import { notify } from '/imports/ui/services/notification';

const intlMessages = defineMessages({
focusLabel: {
Expand Down Expand Up @@ -56,6 +57,9 @@ const intlMessages = defineMessages({
disableDesc: {
id: 'app.videoDock.webcamDisableDesc',
},
disableWarning: {
id: 'app.videoDock.webcamDisableWarning',
},
});

const UserActions = (props) => {
Expand All @@ -82,6 +86,7 @@ const UserActions = (props) => {
const toggleDisableCam = () => {
if (!isCameraDisabled) {
Session.set('disabledCams', [...disabledCams, cameraId]);
notify(intl.formatMessage(intlMessages.disableWarning), 'info', 'warning');
} else {
Session.set('disabledCams', disabledCams.filter((cId) => cId !== cameraId));
}
Expand Down
1 change: 1 addition & 0 deletions bigbluebutton-html5/public/locales/en.json
Expand Up @@ -1167,6 +1167,7 @@
"app.videoDock.webcamDisableLabelAllCams": "Disable self-view (all cameras)",
"app.videoDock.webcamEnableLabel": "Enable self-view",
"app.videoDock.webcamDisableDesc": "Self-view disabled",
"app.videoDock.webcamDisableWarning": "Your webcam is still visible to others! Only your local view is disabled.",
"app.videoDock.webcamPinLabel": "Pin",
"app.videoDock.webcamPinDesc": "Pin the selected webcam",
"app.videoDock.webcamFullscreenLabel": "Fullscreen webcam",
Expand Down