소스 검색

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

master
Leonard Kim 6 년 전
부모
커밋
fecd138a3c
2개의 변경된 파일12개의 추가작업 그리고 2개의 파일을 삭제
  1. 4
    0
      css/_recording.scss
  2. 8
    2
      react/features/recording/components/LiveStream/StartLiveStreamDialog.web.js

+ 4
- 0
css/_recording.scss 파일 보기

@@ -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 파일 보기

@@ -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…
취소
저장