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:
commit
060b70c7c0
|
@ -1735,3 +1735,8 @@ body:-webkit-full-screen #incall .video-footer {
|
|||
color: rgba(0, 10, 66, 0.84);
|
||||
background-color: #E8E8E8;
|
||||
}
|
||||
|
||||
#settings .loader {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
|
|
@ -125,6 +125,7 @@
|
|||
"AUTO_SPEED_RES": "Automatically determine speed and resolution settings",
|
||||
"RECHECK_BANDWIDTH": "Recheck bandwidth before each outgoing call",
|
||||
"CHECK_NETWORK_SPEED": "Check Network Speed",
|
||||
"CHECKING_NETWORK_SPEED": "Checking Network Speed",
|
||||
"VIDEO_QUALITY": "Video quality:",
|
||||
"MAX_INCOMING_BANDWIDTH": "Max incoming bandwidth:",
|
||||
"MAX_OUTGOING_BANDWIDTH": "Max outgoing bandwidth:",
|
||||
|
|
|
@ -125,6 +125,7 @@
|
|||
"AUTO_SPEED_RES": "Determinar automaticamente velocidade e configurações de resolução",
|
||||
"RECHECK_BANDWIDTH": "Verificar novamente largura de banda antes de realizar cada chamada",
|
||||
"CHECK_NETWORK_SPEED": "Verificar velocidade da rede",
|
||||
"CHECKING_NETWORK_SPEED": "Verificando velocidade da rede",
|
||||
"VIDEO_QUALITY": "Qualidade do vídeo:",
|
||||
"MAX_INCOMING_BANDWIDTH": "Largura de banda de entrada máxima:",
|
||||
"MAX_OUTGOING_BANDWIDTH": "Largura de banda de saída máxima:",
|
||||
|
|
|
@ -144,12 +144,15 @@
|
|||
</label>
|
||||
</div>
|
||||
|
||||
<a class="btn btn-primary" href="" ng-click="testSpeed()">
|
||||
{{ 'CHECK_NETWORK_SPEED' | translate }}
|
||||
<a class="btn btn-primary" href="" ng-disabled="isTestingSpeed" ng-click="testSpeed()">
|
||||
{{ isTestingSpeed ? 'CHECKING_NETWORK_SPEED' : 'CHECK_NETWORK_SPEED' | translate }}
|
||||
</a>
|
||||
|
||||
<div>
|
||||
<span ng-bind="speedMsg"></span>
|
||||
<span ng-show="isTestingSpeed">
|
||||
<img class="loader" src="src/images/ajax-loader.gif"/>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -94,11 +94,13 @@
|
|||
};
|
||||
|
||||
$scope.testSpeed = function() {
|
||||
$scope.isTestingSpeed = true;
|
||||
return verto.testSpeed(cb);
|
||||
|
||||
function cb(data) {
|
||||
$scope.mydata.vidQual = storage.data.vidQual;
|
||||
$scope.speedMsg = 'Up: ' + data.upKPS + ' Down: ' + data.downKPS;
|
||||
$scope.isTestingSpeed = false;
|
||||
$scope.$apply();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue