소스 검색

feat(transcribing) add notification when transcribing starts

factor2
Saúl Ibarra Corretgé 1 년 전
부모
커밋
5966df96e8
3개의 변경된 파일18개의 추가작업 그리고 0개의 파일을 삭제
  1. 1
    0
      lang/main.json
  2. 14
    0
      react/features/transcribing/actions.ts
  3. 3
    0
      react/features/transcribing/middleware.ts

+ 1
- 0
lang/main.json 파일 보기

@@ -1360,6 +1360,7 @@
1360 1360
         "failedToStart": "Transcribing failed to start",
1361 1361
         "labelToolTip": "The meeting is being transcribed",
1362 1362
         "off": "Transcribing stopped",
1363
+        "on": "Transcribing started",
1363 1364
         "pending": "Preparing to transcribe the meeting...",
1364 1365
         "sourceLanguageDesc": "Currently the meeting language is set to <b>{{sourceLanguage}}</b>. <br/> You can change it from ",
1365 1366
         "sourceLanguageHere": "here",

+ 14
- 0
react/features/transcribing/actions.ts 파일 보기

@@ -72,6 +72,20 @@ export function showPendingTranscribingNotification() {
72 72
     }, NOTIFICATION_TIMEOUT_TYPE.LONG);
73 73
 }
74 74
 
75
+/**
76
+ * Signals that the started transcribing notification should be shown on the
77
+ * screen.
78
+ *
79
+ * @returns {showNotification}
80
+ */
81
+export function showStartedTranscribingNotification() {
82
+    return showNotification({
83
+        descriptionKey: 'transcribing.on',
84
+        titleKey: 'dialog.transcribing',
85
+        uid: TRANSCRIBING_NOTIFICATION_ID
86
+    }, NOTIFICATION_TIMEOUT_TYPE.SHORT);
87
+}
88
+
75 89
 /**
76 90
  * Signals that the stopped transcribing notification should be shown on the
77 91
  * screen.

+ 3
- 0
react/features/transcribing/middleware.ts 파일 보기

@@ -14,6 +14,7 @@ import {
14 14
 import {
15 15
     potentialTranscriberJoined,
16 16
     showPendingTranscribingNotification,
17
+    showStartedTranscribingNotification,
17 18
     showStoppedTranscribingNotification,
18 19
     transcriberJoined,
19 20
     transcriberLeft
@@ -37,6 +38,8 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {
37 38
 
38 39
     switch (action.type) {
39 40
     case _TRANSCRIBER_JOINED: {
41
+        dispatch(showStartedTranscribingNotification());
42
+
40 43
         const state = getState();
41 44
         const { transcription } = state['features/base/config'];
42 45
         const { _requestingSubtitles } = state['features/subtitles'];

Loading…
취소
저장