Pārlūkot izejas kodu

Adds an I am a recorder parameter that allows for the UI to be cleaner and simpler for the recorders.

j8
yanas 9 gadus atpakaļ
vecāks
revīzija
7f7d9d5594
1 mainītis faili ar 8 papildinājumiem un 3 dzēšanām
  1. 8
    3
      modules/UI/recording/Recording.js

+ 8
- 3
modules/UI/recording/Recording.js Parādīt failu

@@ -18,10 +18,11 @@ import UIEvents from "../../../service/UI/UIEvents";
18 18
 import UIUtil from '../util/UIUtil';
19 19
 
20 20
 /**
21
- * Recording.
21
+ * Indicates if the recording button should be enabled.
22
+ *
23
+ * @returns {boolean} {true} if the
24
+ * @private
22 25
  */
23
-let recordingToaster = null;
24
-
25 26
 function _isRecordingButtonEnabled() {
26 27
     return interfaceConfig.TOOLBAR_BUTTONS.indexOf("recording") !== -1
27 28
             && config.enableRecording;
@@ -270,6 +271,10 @@ var Recording = {
270 271
     },
271 272
 
272 273
     updateRecordingState(recordingState) {
274
+        // I'm the recorder, so I don't want to see any UI related to states.
275
+        if (config.iAmRecorder)
276
+            return;
277
+
273 278
         // If there's no state change, we ignore the update.
274 279
         if (this.currentState === recordingState)
275 280
             return;

Notiek ielāde…
Atcelt
Saglabāt