jam-cloud/web/app/assets/javascripts/react-components/SessionFilesBtn.js.jsx.coffee

21 lines
598 B
CoffeeScript
Raw Permalink Normal View History

context = window
RecordingActions = @RecordingActions
@SessionFilesBtn = React.createClass({
getInitialState: () ->
{}
2018-01-16 20:27:20 +00:00
openChat: () ->
if this.props.isLesson
this.props.app.layout.showDialog('chat-dialog', {d1: 'lesson_' + this.props.lessonId})
else
this.props.app.layout.showDialog('chat-dialog', {d1: 'session_' + this.props.sessionId})
render: () ->
2018-01-16 20:27:20 +00:00
`<a className="session-record button-grey left" onClick={this.openChat.bind(this)}>
<img src="/assets/content/icon_open_folder.png" align="texttop" height="14" width="14"/>
FILES
</a>`
})