From bbbcd3bbe16f67febb9955ff7d92908b82d2fa24 Mon Sep 17 00:00:00 2001 From: Christopher Young Date: Fri, 29 Jan 2016 14:41:30 -0500 Subject: [PATCH] Change terminology for status on weather/traffic/towers plates. Ref #210. --- web/plates/js/traffic.js | 6 +++--- web/plates/js/weather.js | 6 +++--- web/plates/towers.html | 4 ++-- web/plates/traffic.html | 4 ++-- web/plates/weather.html | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/web/plates/js/traffic.js b/web/plates/js/traffic.js index 36ffdf93..208add6f 100755 --- a/web/plates/js/traffic.js +++ b/web/plates/js/traffic.js @@ -61,16 +61,16 @@ function TrafficCtrl($rootScope, $scope, $state, $http, $interval) { $scope.socket = socket; // store socket in scope for enter/exit usage } - $scope.ConnectState = "Not Receiving"; + $scope.ConnectState = "Disconnected"; socket.onopen = function (msg) { // $scope.ConnectStyle = "label-success"; - $scope.ConnectState = "Receiving"; + $scope.ConnectState = "Connected"; }; socket.onclose = function (msg) { // $scope.ConnectStyle = "label-danger"; - $scope.ConnectState = "Not Receiving"; + $scope.ConnectState = "Disconnected"; $scope.$apply(); setTimeout(connect, 1000); }; diff --git a/web/plates/js/weather.js b/web/plates/js/weather.js index 2a94b4a2..8c7343c1 100755 --- a/web/plates/js/weather.js +++ b/web/plates/js/weather.js @@ -154,16 +154,16 @@ function WeatherCtrl($rootScope, $scope, $state, $http, $interval) { $scope.socket = socket; // store socket in scope for enter/exit usage } - $scope.ConnectState = "Not Receiving"; + $scope.ConnectState = "Disconnected"; socket.onopen = function (msg) { // $scope.ConnectStyle = "label-success"; - $scope.ConnectState = "Receiving"; + $scope.ConnectState = "Connected"; }; socket.onclose = function (msg) { // $scope.ConnectStyle = "label-danger"; - $scope.ConnectState = "Not Receiving"; + $scope.ConnectState = "Disconnected"; $scope.$apply(); setTimeout(connect, 1000); }; diff --git a/web/plates/towers.html b/web/plates/towers.html index 75ad6863..1458daf8 100644 --- a/web/plates/towers.html +++ b/web/plates/towers.html @@ -2,8 +2,8 @@
Towers - {{ConnectState}} - {{ConnectState}} + {{ConnectState}} + {{ConnectState}}
diff --git a/web/plates/traffic.html b/web/plates/traffic.html index 64f95c4a..e65bc40e 100755 --- a/web/plates/traffic.html +++ b/web/plates/traffic.html @@ -2,8 +2,8 @@
Traffic - {{ConnectState}} - {{ConnectState}} + {{ConnectState}} + {{ConnectState}}
diff --git a/web/plates/weather.html b/web/plates/weather.html index 24f1585a..5ee5f0a8 100755 --- a/web/plates/weather.html +++ b/web/plates/weather.html @@ -2,8 +2,8 @@
Weather - {{ConnectState}} - {{ConnectState}} + {{ConnectState}} + {{ConnectState}}