Merge pull request #1281 in FS/freeswitch from ~NETOGUIMARAES/freeswitch:bugfix/FS-10309-check-network-has-no-visual-feedback to master

* commit '25f5b3ab7e7eaa36d6ead8e2c74b6b4b9dfb41bf':
  FS-10309: [verto_communicator] Add a loader that shows up when check network is called and vanishes when the request is completed. The button to check network now is disabled when a request is processing.
This commit is contained in:
Italo Rossi 2017-05-16 18:53:51 +00:00
commit 060b70c7c0
5 changed files with 14 additions and 2 deletions

View File

@ -1735,3 +1735,8 @@ body:-webkit-full-screen #incall .video-footer {
color: rgba(0, 10, 66, 0.84); color: rgba(0, 10, 66, 0.84);
background-color: #E8E8E8; background-color: #E8E8E8;
} }
#settings .loader {
width: 20px;
height: 20px;
}

View File

@ -125,6 +125,7 @@
"AUTO_SPEED_RES": "Automatically determine speed and resolution settings", "AUTO_SPEED_RES": "Automatically determine speed and resolution settings",
"RECHECK_BANDWIDTH": "Recheck bandwidth before each outgoing call", "RECHECK_BANDWIDTH": "Recheck bandwidth before each outgoing call",
"CHECK_NETWORK_SPEED": "Check Network Speed", "CHECK_NETWORK_SPEED": "Check Network Speed",
"CHECKING_NETWORK_SPEED": "Checking Network Speed",
"VIDEO_QUALITY": "Video quality:", "VIDEO_QUALITY": "Video quality:",
"MAX_INCOMING_BANDWIDTH": "Max incoming bandwidth:", "MAX_INCOMING_BANDWIDTH": "Max incoming bandwidth:",
"MAX_OUTGOING_BANDWIDTH": "Max outgoing bandwidth:", "MAX_OUTGOING_BANDWIDTH": "Max outgoing bandwidth:",

View File

@ -125,6 +125,7 @@
"AUTO_SPEED_RES": "Determinar automaticamente velocidade e configurações de resolução", "AUTO_SPEED_RES": "Determinar automaticamente velocidade e configurações de resolução",
"RECHECK_BANDWIDTH": "Verificar novamente largura de banda antes de realizar cada chamada", "RECHECK_BANDWIDTH": "Verificar novamente largura de banda antes de realizar cada chamada",
"CHECK_NETWORK_SPEED": "Verificar velocidade da rede", "CHECK_NETWORK_SPEED": "Verificar velocidade da rede",
"CHECKING_NETWORK_SPEED": "Verificando velocidade da rede",
"VIDEO_QUALITY": "Qualidade do vídeo:", "VIDEO_QUALITY": "Qualidade do vídeo:",
"MAX_INCOMING_BANDWIDTH": "Largura de banda de entrada máxima:", "MAX_INCOMING_BANDWIDTH": "Largura de banda de entrada máxima:",
"MAX_OUTGOING_BANDWIDTH": "Largura de banda de saída máxima:", "MAX_OUTGOING_BANDWIDTH": "Largura de banda de saída máxima:",

View File

@ -144,12 +144,15 @@
</label> </label>
</div> </div>
<a class="btn btn-primary" href="" ng-click="testSpeed()"> <a class="btn btn-primary" href="" ng-disabled="isTestingSpeed" ng-click="testSpeed()">
{{ 'CHECK_NETWORK_SPEED' | translate }} {{ isTestingSpeed ? 'CHECKING_NETWORK_SPEED' : 'CHECK_NETWORK_SPEED' | translate }}
</a> </a>
<div> <div>
<span ng-bind="speedMsg"></span> <span ng-bind="speedMsg"></span>
<span ng-show="isTestingSpeed">
<img class="loader" src="src/images/ajax-loader.gif"/>
</span>
</div> </div>
</div> </div>

View File

@ -94,11 +94,13 @@
}; };
$scope.testSpeed = function() { $scope.testSpeed = function() {
$scope.isTestingSpeed = true;
return verto.testSpeed(cb); return verto.testSpeed(cb);
function cb(data) { function cb(data) {
$scope.mydata.vidQual = storage.data.vidQual; $scope.mydata.vidQual = storage.data.vidQual;
$scope.speedMsg = 'Up: ' + data.upKPS + ' Down: ' + data.downKPS; $scope.speedMsg = 'Up: ' + data.upKPS + ' Down: ' + data.downKPS;
$scope.isTestingSpeed = false;
$scope.$apply(); $scope.$apply();
} }
}; };