Browse Source

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

master
Leonard Kim 6 years ago
parent
commit
fecd138a3c

+ 4
- 0
css/_recording.scss View File

@@ -30,6 +30,10 @@
30 30
         width: 100%;
31 31
     }
32 32
 
33
+    .google-error {
34
+        color: $errorColor;
35
+    }
36
+
33 37
     /**
34 38
      * The Google sign in button must follow Google's design guidelines.
35 39
      * See: https://developers.google.com/identity/branding-guidelines

+ 8
- 2
react/features/recording/components/LiveStream/StartLiveStreamDialog.web.js View File

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

Loading…
Cancel
Save