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

20 lines
437 B
CoffeeScript

context = window
@SessionResyncBtn = React.createClass({
mixins: [Reflux.listenTo(@AppStore,"onAppInit")]
resync: (e) ->
e.preventDefault()
SessionActions.audioResync()
render: () ->
`<a className="session-resync button-grey resync left" onClick={this.resync}>
<img src="/assets/content/icon_resync.png" align="texttop" height="12" width="12"/>
RESYNC
</a>`
onAppInit: (app) ->
@app = app
})