mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 17:37:49 +00:00
fix(recording): red error text for google api errors
This commit is contained in:
committed by
Дамян Минков
parent
1f8fa3b6d4
commit
fecd138a3c
@@ -544,14 +544,20 @@ class StartLiveStreamDialog extends Component<Props, State> {
|
||||
* @returns {string} The error message to display.
|
||||
*/
|
||||
_getGoogleErrorMessageToDisplay() {
|
||||
let text;
|
||||
|
||||
switch (this.state.errorType) {
|
||||
case 'liveStreamingNotEnabled':
|
||||
return this.props.t(
|
||||
text = this.props.t(
|
||||
'liveStreaming.errorLiveStreamNotEnabled',
|
||||
{ email: this.state.googleProfileEmail });
|
||||
break;
|
||||
default:
|
||||
return this.props.t('liveStreaming.errorAPI');
|
||||
text = this.props.t('liveStreaming.errorAPI');
|
||||
break;
|
||||
}
|
||||
|
||||
return <div className = 'google-error'>{ text }</div>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user