From: Italo Rossi Date: Mon, 12 Oct 2015 01:11:03 +0000 (-0300) Subject: FS-8331 [verto_communicator] #resolve Do not show reconnect splash when user X-Git-Tag: v1.6.4~1^2~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aefd1f13ca59a7a5d65b5ec196a8f2eceabe62d4;p=thirdparty%2Ffreeswitch.git FS-8331 [verto_communicator] #resolve Do not show reconnect splash when user click in logout --- diff --git a/html5/verto/verto_communicator/src/vertoControllers/controllers/MainController.js b/html5/verto/verto_communicator/src/vertoControllers/controllers/MainController.js index daa9b95b69..b34aad8631 100644 --- a/html5/verto/verto_communicator/src/vertoControllers/controllers/MainController.js +++ b/html5/verto/verto_communicator/src/vertoControllers/controllers/MainController.js @@ -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,7 +171,9 @@ backdrop: 'static', keyboard: false }; - ws_modalInstance = $scope.openModal('partials/ws_reconnect.html', 'ModalWsReconnectController', options); + if ($scope.showReconnectModal) { + ws_modalInstance = $scope.openModal('partials/ws_reconnect.html', 'ModalWsReconnectController', options); + }; }; function onWSLogin(ev, data) {