20 lines
468 B
CoffeeScript
20 lines
468 B
CoffeeScript
|
|
context = window
|
||
|
|
|
||
|
|
@SessionSettingsBtn = React.createClass({
|
||
|
|
|
||
|
|
mixins: [Reflux.listenTo(@AppStore,"onAppInit")]
|
||
|
|
|
||
|
|
openSettings: (e) ->
|
||
|
|
e.preventDefault()
|
||
|
|
|
||
|
|
@app.layout.showDialog('session-settings')
|
||
|
|
|
||
|
|
render: () ->
|
||
|
|
`<a className="session-settings button-grey left" onClick={this.openSettings}>
|
||
|
|
<img src="/assets/content/icon_settings_sm.png" align="texttop" height="14" width="14"/>
|
||
|
|
SETTINGS
|
||
|
|
</a>`
|
||
|
|
|
||
|
|
onAppInit: (app) ->
|
||
|
|
@app = app
|
||
|
|
})
|