-
- { this.props.t(key) }
-
- { showSpinner
- ?
+
+
+
+ :
+ { this.props.t(key) }
+
}
+ { !_isRecording
+ && showSpinner
+ &&
- : null }
-
+ src = 'images/spin.svg' /> }
+
);
}
}
@@ -126,27 +138,20 @@ class RecordingLabel extends Component {
* @private
* @returns {{
* _filmstripVisible: boolean,
+ * _isRecording: boolean,
* _labelDisplayConfiguration: Object
* }}
*/
function _mapStateToProps(state) {
const { visible } = state['features/filmstrip'];
- const { labelDisplayConfiguration } = state['features/recording'];
+ const {
+ labelDisplayConfiguration,
+ recordingState
+ } = state['features/recording'];
return {
- /**
- * Whether or not the filmstrip is currently set to be displayed.
- *
- * @type {boolean}
- */
_filmstripVisible: visible,
-
- /**
- * An object describing how {@code RecordingLabel} should display its
- * contents.
- *
- * @type {Object}
- */
+ _isRecording: recordingState === JitsiRecordingStatus.ON,
_labelDisplayConfiguration: labelDisplayConfiguration
};
}