Commit d83b0d8c authored by Md Suleman's avatar Md Suleman

login hours changes

parent c0b5dfaa
......@@ -4,7 +4,7 @@ myApp.controller("employeesController", function($scope, $http, myFactory, $mdDi
$scope.empName = myFactory.getEmpName();
$scope.empEmailId = myFactory.getEmpEmailId();
$scope.role = myFactory.getEmpRole();
//$scope.avgLoginHrs = "";
$scope.avgLoginHrs = "";
$scope.isVisible = false;
$scope.searchId="";
$scope.hidethis = false;
......@@ -181,7 +181,7 @@ myApp.controller("employeesController", function($scope, $http, myFactory, $mdDi
}else{
if(recs.length >0 ){
$scope.isVisible = true;
//$scope.avgLoginHrs = response.data[0].totalAvgTime +" Hrs";
$scope.avgLoginHrs = response.data.averageTime +" Hrs";
}
$scope.gridOptions.data = recs;
}
......@@ -246,7 +246,7 @@ myApp.controller("employeesController", function($scope, $http, myFactory, $mdDi
$scope.toDate = priorDt;
$scope.gridOptions.data = [];
$scope.isVisible = false;
//$scope.avgLoginHrs = "";
$scope.avgLoginHrs = "";
}
function treatAsUTC(date) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment