fix(recording): red error text for google api errors

This commit is contained in:
Leonard Kim 2018-06-13 08:19:09 -07:00 committed by Дамян Минков
parent 1f8fa3b6d4
commit fecd138a3c
2 changed files with 12 additions and 2 deletions

View File

@ -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

View File

@ -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>;
} }
/** /**