28 lines
847 B
CoffeeScript
28 lines
847 B
CoffeeScript
context = window
|
|
MIX_MODES = context.JK.MIX_MODES
|
|
|
|
@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_volume.png" align="texttop" height="14" width="14"/>
|
|
VOLUME
|
|
</a>`
|
|
|
|
componentDidMount: () ->
|
|
$root = $(this.getDOMNode())
|
|
|
|
context.JK.interactReactBubble(
|
|
$root,
|
|
'SessionSelfVolumeHover',
|
|
() =>
|
|
{inputGroupMixers: @state.mixers.getAudioInputCategoryMixer(MIX_MODES.PERSONAL), chatGroupMixers: @state.mixers.getChatCategoryMixer( MIX_MODES.PERSONAL)}
|
|
,
|
|
{width:470, positions:['right', 'bottom', 'left'], offsetParent:$root.closest('.screen')})
|
|
|
|
}) |