24 lines
670 B
CoffeeScript
24 lines
670 B
CoffeeScript
context = window
|
|
RecordingActions = @RecordingActions
|
|
|
|
@SessionRecordBtn = React.createClass({
|
|
|
|
mixins: [Reflux.listenTo(@MixerStore,"onSessionMixerChange")]
|
|
|
|
onSessionMixerChange: (sessionMixers) ->
|
|
|
|
this.setState({isRecording: sessionMixers.session.isRecording})
|
|
|
|
getInitialState: () ->
|
|
{childWindow: null, isRecording: false}
|
|
|
|
openRecording: () ->
|
|
|
|
RecordingActions.openRecordingControls()
|
|
|
|
render: () ->
|
|
`<a className="session-record button-grey left" data-is-recording={this.state.isRecording} onClick={this.openRecording}>
|
|
<img src="/assets/content/icon_record.png" align="texttop" height="14" width="14"/>
|
|
RECORD
|
|
</a>`
|
|
}) |