20 lines
438 B
CoffeeScript
20 lines
438 B
CoffeeScript
context = window
|
|
|
|
@SessionShareBtn = React.createClass({
|
|
|
|
mixins: [Reflux.listenTo(@AppStore,"onAppInit")]
|
|
|
|
onShare: (e) ->
|
|
e.preventDefault()
|
|
|
|
@app.layout.showDialog('share-dialog')
|
|
|
|
render: () ->
|
|
`<a className="session-share button-grey left" onClick={this.onShare}>
|
|
<img src="/assets/content/icon_share.png" align="texttop" height="12" width="12"/>
|
|
SHARE
|
|
</a>`
|
|
|
|
onAppInit: (app) ->
|
|
@app = app
|
|
}) |