fix(recording): red error text for google api errors
This commit is contained in:
parent
1f8fa3b6d4
commit
fecd138a3c
|
@ -30,6 +30,10 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.google-error {
|
||||||
|
color: $errorColor;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Google sign in button must follow Google's design guidelines.
|
* The Google sign in button must follow Google's design guidelines.
|
||||||
* See: https://developers.google.com/identity/branding-guidelines
|
* See: https://developers.google.com/identity/branding-guidelines
|
||||||
|
|
|
@ -544,14 +544,20 @@ class StartLiveStreamDialog extends Component<Props, State> {
|
||||||
* @returns {string} The error message to display.
|
* @returns {string} The error message to display.
|
||||||
*/
|
*/
|
||||||
_getGoogleErrorMessageToDisplay() {
|
_getGoogleErrorMessageToDisplay() {
|
||||||
|
let text;
|
||||||
|
|
||||||
switch (this.state.errorType) {
|
switch (this.state.errorType) {
|
||||||
case 'liveStreamingNotEnabled':
|
case 'liveStreamingNotEnabled':
|
||||||
return this.props.t(
|
text = this.props.t(
|
||||||
'liveStreaming.errorLiveStreamNotEnabled',
|
'liveStreaming.errorLiveStreamNotEnabled',
|
||||||
{ email: this.state.googleProfileEmail });
|
{ email: this.state.googleProfileEmail });
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return this.props.t('liveStreaming.errorAPI');
|
text = this.props.t('liveStreaming.errorAPI');
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return <div className = 'google-error'>{ text }</div>;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue