Merge pull request #8293 from jitsi/tavram/update-jaas-rec

fix(jaas) update recording label and hide option for jaas users
This commit is contained in:
Avram Tudor 2020-12-21 13:00:59 +02:00 committed by GitHub
commit 8d813a499c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -601,6 +601,7 @@
"pending": "Preparing to record the meeting...",
"rec": "REC",
"serviceDescription": "Your recording will be saved by the recording service",
"serviceDescriptionCloud": "Cloud recording",
"serviceName": "Recording service",
"signIn": "Sign in",
"signOut": "Sign out",

View File

@ -162,7 +162,9 @@ class StartRecordingDialogContent extends Component<Props> {
* @returns {React$Component}
*/
_renderFileSharingContent() {
if (!this.props.fileRecordingsServiceSharingEnabled) {
const { fileRecordingsServiceSharingEnabled, isVpaas } = this.props;
if (!fileRecordingsServiceSharingEnabled || isVpaas) {
return null;
}
@ -247,6 +249,7 @@ class StartRecordingDialogContent extends Component<Props> {
) : null;
const icon = isVpaas ? ICON_SHARE : JITSI_LOGO;
const label = isVpaas ? t('recording.serviceDescriptionCloud') : t('recording.serviceDescription');
return (
<Container
@ -265,7 +268,7 @@ class StartRecordingDialogContent extends Component<Props> {
..._dialogStyles.text,
...styles.title
}}>
{ t('recording.serviceDescription') }
{ label }
</Text>
{ switchContent }
</Container>