|
@@ -544,14 +544,20 @@ class StartLiveStreamDialog extends Component<Props, State> {
|
544
|
544
|
* @returns {string} The error message to display.
|
545
|
545
|
*/
|
546
|
546
|
_getGoogleErrorMessageToDisplay() {
|
|
547
|
+ let text;
|
|
548
|
+
|
547
|
549
|
switch (this.state.errorType) {
|
548
|
550
|
case 'liveStreamingNotEnabled':
|
549
|
|
- return this.props.t(
|
|
551
|
+ text = this.props.t(
|
550
|
552
|
'liveStreaming.errorLiveStreamNotEnabled',
|
551
|
553
|
{ email: this.state.googleProfileEmail });
|
|
554
|
+ break;
|
552
|
555
|
default:
|
553
|
|
- return this.props.t('liveStreaming.errorAPI');
|
|
556
|
+ text = this.props.t('liveStreaming.errorAPI');
|
|
557
|
+ break;
|
554
|
558
|
}
|
|
559
|
+
|
|
560
|
+ return <div className = 'google-error'>{ text }</div>;
|
555
|
561
|
}
|
556
|
562
|
|
557
|
563
|
/**
|