diff options
author | David Baker <dbkr@matrix.org> | 2014-08-29 18:01:01 +0100 |
---|---|---|
committer | David Baker <dbkr@matrix.org> | 2014-08-29 18:01:01 +0100 |
commit | 490f142d739c7dd30c4ca8e262af5f84c577ebbe (patch) | |
tree | 9878cc9bd121adabd4cbcf2160d306eefda90ea6 /webclient/room | |
parent | todo (diff) | |
download | synapse-490f142d739c7dd30c4ca8e262af5f84c577ebbe.tar.xz |
Give basic feedback on the state of VoIP calls in the UI.
Diffstat (limited to 'webclient/room')
-rw-r--r-- | webclient/room/room-controller.js | 2 | ||||
-rw-r--r-- | webclient/room/room.html | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js index c745ce945b..75adf259cf 100644 --- a/webclient/room/room-controller.js +++ b/webclient/room/room-controller.js @@ -471,7 +471,5 @@ angular.module('RoomController', ['ngSanitize', 'mFileInput']) } $scope.onCallHangup = function() { - $scope.feedback = "Call ended"; - $scope.currentCall = undefined; } }]); diff --git a/webclient/room/room.html b/webclient/room/room.html index cb9239ed56..aa7879ea8f 100644 --- a/webclient/room/room.html +++ b/webclient/room/room.html @@ -105,6 +105,10 @@ <button ng-click="hangupCall()">Reject</button> </div> <button ng-click="hangupCall()" ng-show="currentCall && currentCall.state != 'ringing'">Hang up</button> + <span ng-show="currentCall.state == 'invite_sent'">Calling...</span> + <span ng-show="currentCall.state == 'connecting'">Call Connecting...</span> + <span ng-show="currentCall.state == 'connected'">Call Connected</span> + <span ng-show="currentCall.state == 'ended'">Call Ended</span> <span style="display: none; ">{{ currentCall.state }}</span> </div> |