forked from MirrorHub/synapse
Fix the "is webrtc supported" titles on buttons and make the video / voice call buttons appear in multi-user rooms but be greyed out with approriate titles.
This commit is contained in:
parent
dcc1965bfe
commit
29686f63ac
1 changed files with 6 additions and 6 deletions
|
@ -177,16 +177,16 @@
|
||||||
</span>
|
</span>
|
||||||
<button ng-click="leaveRoom()" ng-disabled="state.permission_denied">Leave</button>
|
<button ng-click="leaveRoom()" ng-disabled="state.permission_denied">Leave</button>
|
||||||
<button ng-click="startVoiceCall()"
|
<button ng-click="startVoiceCall()"
|
||||||
ng-show="(currentCall == undefined || currentCall.state == 'ended') && memberCount() == 2"
|
ng-show="(currentCall == undefined || currentCall.state == 'ended')"
|
||||||
ng-disabled="state.permission_denied || !state.webRTCSupported"
|
ng-disabled="state.permission_denied || !state.webRTCSupported || memberCount() != 2"
|
||||||
title ="{{ state.webRTCNotSupported ? '' : 'VoIP requires webRTC but your browser does not support it.'}}"
|
title ="{{ !state.webRTCSupported ? 'VoIP requires webRTC but your browser does not support it' : (memberCount() == 2 ? '' : 'VoIP calls can only be made in rooms with two participants') }}"
|
||||||
>
|
>
|
||||||
Voice Call
|
Voice Call
|
||||||
</button>
|
</button>
|
||||||
<button ng-click="startVideoCall()"
|
<button ng-click="startVideoCall()"
|
||||||
ng-show="(currentCall == undefined || currentCall.state == 'ended') && memberCount() == 2"
|
ng-show="(currentCall == undefined || currentCall.state == 'ended')"
|
||||||
ng-disabled="state.permission_denied || !state.webRTCSupported"
|
ng-disabled="state.permission_denied || !state.webRTCSupported || memberCount() != 2"
|
||||||
title ="{{ state.webRTCNotSupported ? '' : 'VoIP requires webRTC but your browser does not support it.'}}"
|
title ="{{ !state.webRTCSupported ? 'VoIP requires webRTC but your browser does not support it' : (memberCount() == 2 ? '' : 'VoIP calls can only be made in rooms with two participants') }}"
|
||||||
>
|
>
|
||||||
Video Call
|
Video Call
|
||||||
</button>
|
</button>
|
||||||
|
|
Loading…
Reference in a new issue