From 25f5b3ab7e7eaa36d6ead8e2c74b6b4b9dfb41bf Mon Sep 17 00:00:00 2001 From: Neto Guimaraes Date: Tue, 16 May 2017 11:26:59 -0300 Subject: [PATCH] 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. --- html5/verto/verto_communicator/src/css/verto.css | 5 +++++ html5/verto/verto_communicator/src/locales/locale-en.json | 1 + html5/verto/verto_communicator/src/locales/locale-pt.json | 1 + html5/verto/verto_communicator/src/partials/settings.html | 7 +++++-- .../src/vertoControllers/controllers/SettingsController.js | 2 ++ 5 files changed, 14 insertions(+), 2 deletions(-) diff --git a/html5/verto/verto_communicator/src/css/verto.css b/html5/verto/verto_communicator/src/css/verto.css index 0d674b42f8..5111880806 100644 --- a/html5/verto/verto_communicator/src/css/verto.css +++ b/html5/verto/verto_communicator/src/css/verto.css @@ -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; +} diff --git a/html5/verto/verto_communicator/src/locales/locale-en.json b/html5/verto/verto_communicator/src/locales/locale-en.json index 13a12b4e17..f5f778e6d4 100644 --- a/html5/verto/verto_communicator/src/locales/locale-en.json +++ b/html5/verto/verto_communicator/src/locales/locale-en.json @@ -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:", diff --git a/html5/verto/verto_communicator/src/locales/locale-pt.json b/html5/verto/verto_communicator/src/locales/locale-pt.json index 226f32e28a..7d3260b5ed 100644 --- a/html5/verto/verto_communicator/src/locales/locale-pt.json +++ b/html5/verto/verto_communicator/src/locales/locale-pt.json @@ -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:", diff --git a/html5/verto/verto_communicator/src/partials/settings.html b/html5/verto/verto_communicator/src/partials/settings.html index c07b1a836c..a1de757c48 100644 --- a/html5/verto/verto_communicator/src/partials/settings.html +++ b/html5/verto/verto_communicator/src/partials/settings.html @@ -144,12 +144,15 @@ - - {{ 'CHECK_NETWORK_SPEED' | translate }} + + {{ isTestingSpeed ? 'CHECKING_NETWORK_SPEED' : 'CHECK_NETWORK_SPEED' | translate }}
+ + +
diff --git a/html5/verto/verto_communicator/src/vertoControllers/controllers/SettingsController.js b/html5/verto/verto_communicator/src/vertoControllers/controllers/SettingsController.js index a130639155..7a03de2f91 100644 --- a/html5/verto/verto_communicator/src/vertoControllers/controllers/SettingsController.js +++ b/html5/verto/verto_communicator/src/vertoControllers/controllers/SettingsController.js @@ -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(); } };