Преглед изворни кода

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

master
Leonard Kim пре 6 година
родитељ
комит
fecd138a3c

+ 4
- 0
css/_recording.scss Прегледај датотеку

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

+ 8
- 2
react/features/recording/components/LiveStream/StartLiveStreamDialog.web.js Прегледај датотеку

544
      * @returns {string} The error message to display.
544
      * @returns {string} The error message to display.
545
      */
545
      */
546
     _getGoogleErrorMessageToDisplay() {
546
     _getGoogleErrorMessageToDisplay() {
547
+        let text;
548
+
547
         switch (this.state.errorType) {
549
         switch (this.state.errorType) {
548
         case 'liveStreamingNotEnabled':
550
         case 'liveStreamingNotEnabled':
549
-            return this.props.t(
551
+            text = this.props.t(
550
                 'liveStreaming.errorLiveStreamNotEnabled',
552
                 'liveStreaming.errorLiveStreamNotEnabled',
551
                 { email: this.state.googleProfileEmail });
553
                 { email: this.state.googleProfileEmail });
554
+            break;
552
         default:
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…
Откажи
Сачувај