dashboard: refactor interface

This commit is contained in:
nemunaire 2018-12-04 05:34:34 +01:00
parent b9f1822a65
commit 3056a19d09
3 changed files with 35 additions and 18 deletions

View file

@ -149,10 +149,10 @@ angular.module("FICApp")
$scope.time = {};
return
} else if ($rootScope.settings.start > srv_cur) {
$rootScope.startIn = Math.floor(($rootScope.settings.start - srv_cur) / 1000);
$scope.startIn = Math.floor(($rootScope.settings.start - srv_cur) / 1000);
remain = $rootScope.settings.end - $rootScope.settings.start;
} else if ($rootScope.settings.end > srv_cur) {
$rootScope.startIn = 0;
$scope.startIn = 0;
remain = $rootScope.settings.end - srv_cur;
}