FS-8331 [verto_communicator] #resolve Do not show reconnect splash when user
click in logout
This commit is contained in:
parent
b5301688d7
commit
aefd1f13ca
|
@ -13,7 +13,7 @@
|
|||
$scope.storage = storage;
|
||||
$scope.call_history = angular.element("#call_history").hasClass('active');
|
||||
$rootScope.chatStatus = angular.element('#wrapper').hasClass('toggled');
|
||||
|
||||
$scope.showReconnectModal = true;
|
||||
/**
|
||||
* (explanation) scope in another controller extends rootScope (singleton)
|
||||
*/
|
||||
|
@ -84,6 +84,7 @@
|
|||
}
|
||||
|
||||
$scope.closeChat();
|
||||
$scope.showReconnectModal = false;
|
||||
verto.disconnect(disconnectCallback);
|
||||
|
||||
verto.hangup();
|
||||
|
@ -170,8 +171,10 @@
|
|||
backdrop: 'static',
|
||||
keyboard: false
|
||||
};
|
||||
if ($scope.showReconnectModal) {
|
||||
ws_modalInstance = $scope.openModal('partials/ws_reconnect.html', 'ModalWsReconnectController', options);
|
||||
};
|
||||
};
|
||||
|
||||
function onWSLogin(ev, data) {
|
||||
if(!ws_modalInstance) {
|
||||
|
|
Loading…
Reference in New Issue