27 lines
788 B
CoffeeScript
27 lines
788 B
CoffeeScript
context = window
|
|
|
|
@SessionVolumeSettingsBtn = React.createClass({
|
|
|
|
mixins: [Reflux.listenTo(@MixerStore,"onInputsChanged")]
|
|
|
|
onInputsChanged: (sessionMixers) ->
|
|
this.setState(sessionMixers)
|
|
|
|
render: () ->
|
|
`<a className="session-volume-settings button-grey left">
|
|
<img src="/assets/content/icon_settings_sm.png" align="texttop" height="12" width="12"/>
|
|
VOLUME
|
|
</a>`
|
|
|
|
componentDidMount: () ->
|
|
$root = $(this.getDOMNode())
|
|
|
|
context.JK.interactReactBubble(
|
|
$root,
|
|
'SessionSelfVolumeHover',
|
|
() =>
|
|
{inputGroupMixers: this.state.mixers.getAudioInputChatGroupMixer(), chatGroupMixers: this.state.mixers.getChatGroupMixer()}
|
|
,
|
|
{width:470, positions:['right', 'bottom', 'left'], offsetParent:$root.closest('.screen')})
|
|
|
|
}) |