Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(file-sharing): Adds tooltip to upload button. (#16924)
Дамян Минков6e3c25690589
diff --git a/lang/main.json b/lang/main.jsonindex 2b0d335b74..0a17b65783 100644--- a/lang/main.json+++ b/lang/main.json@@ -592,6 +592,7 @@"newFileNotification": "{{ participantName }} shared '{{ fileName }}'","removeFile": "Remove","removeFileSuccess": "File removed successfully",+ "uploadDisabled": "Not allowed to upload files. Ask a moderator for permission rights for that operation.","uploadFailedDescription": "Please try again.","uploadFailedTitle": "Upload failed","uploadFile": "Share file"diff --git a/react/features/file-sharing/components/web/FileSharing.tsx b/react/features/file-sharing/components/web/FileSharing.tsxindex 2c516c507a..34d530b924 100644--- a/react/features/file-sharing/components/web/FileSharing.tsx+++ b/react/features/file-sharing/components/web/FileSharing.tsx@@ -6,6 +6,7 @@ import { makeStyles } from 'tss-react/mui';import { IReduxState } from '../../../app/types';import Icon from '../../../base/icons/components/Icon';import { IconCloudUpload } from '../../../base/icons/svg';+import Tooltip from '../../../base/tooltip/components/Tooltip';import BaseTheme from '../../../base/ui/components/BaseTheme.web';import Button from '../../../base/ui/components/web/Button';import { BUTTON_TYPES } from '../../../base/ui/constants.web';@@ -226,16 +227,20 @@ const FileSharing = () => {)}{- isUploadEnabled && (+ <Tooltip+ containerClassName = { classes.uploadButton }+ content = { isUploadEnabled ? t('fileSharing.uploadFile') : t('fileSharing.uploadDisabled') }+ position = 'top'><ButtonaccessibilityLabel = { t('fileSharing.uploadFile') }className = { classes.uploadButton }+ disabled = { !isUploadEnabled }labelKey = { 'fileSharing.uploadFile' }onClick = { handleClick }onKeyPress = { handleKeyPress }ref = { uploadButtonRef }type = { BUTTON_TYPES.PRIMARY } />- )+ </Tooltip>}</div>);