mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-13 22:02:31 +00:00
Rearrange recording feature files
This commit is contained in:
committed by
Zoltan Bettenbuk
parent
2b1cb75e40
commit
71edea8aac
45
react/features/recording/components/web/RecordingLabel.js
Normal file
45
react/features/recording/components/web/RecordingLabel.js
Normal file
@@ -0,0 +1,45 @@
|
||||
// @flow
|
||||
|
||||
import React from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { CircularLabel } from '../../../base/label';
|
||||
import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';
|
||||
import { translate } from '../../../base/i18n';
|
||||
|
||||
import AbstractRecordingLabel, {
|
||||
_mapStateToProps
|
||||
} from '../AbstractRecordingLabel';
|
||||
|
||||
/**
|
||||
* Implements a React {@link Component} which displays the current state of
|
||||
* conference recording.
|
||||
*
|
||||
* @extends {Component}
|
||||
*/
|
||||
class RecordingLabel extends AbstractRecordingLabel {
|
||||
/**
|
||||
* Renders the platform specific label component.
|
||||
*
|
||||
* @inheritdoc
|
||||
*/
|
||||
_renderLabel() {
|
||||
if (this.props._status !== JitsiRecordingConstants.status.ON) {
|
||||
// Since there are no expanded labels on web, we only render this
|
||||
// label when the recording status is ON.
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
<CircularLabel
|
||||
className = { this.props.mode }
|
||||
label = { this.props.t(this._getLabelKey()) } />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
_getLabelKey: () => ?string
|
||||
}
|
||||
|
||||
export default translate(connect(_mapStateToProps)(RecordingLabel));
|
||||
3
react/features/recording/components/web/index.js
Normal file
3
react/features/recording/components/web/index.js
Normal file
@@ -0,0 +1,3 @@
|
||||
// @flow
|
||||
|
||||
export { default as RecordingLabel } from './RecordingLabel';
|
||||
Reference in New Issue
Block a user