changes in course

This commit is contained in:
gandhimathi 2017-11-30 10:06:38 +05:30
parent 7cf32ca331
commit 3186c8251c

View File

@ -10,6 +10,7 @@ app.controller('dashboardCtrl', ["$scope","toaster", "$filter", "ngTableParams",
* this method called from view ng-init directive
* created by kms
* */
$scope.todayFolloupDetails="";
$scope.initCallTracking = function () {
var getCallTrack = {
method: 'POST',
@ -25,15 +26,14 @@ app.controller('dashboardCtrl', ["$scope","toaster", "$filter", "ngTableParams",
if (response.data.status==200) {
if(response.data.todayStatus){
$scope.todayFolloupDetails=response.data.todayFolloupDetails;
console.log($scope.todayFolloupDetails)
}
else{
$scope.todayFolloupDetails=response.data.todayFolloupDetails;
$scope.todayFolloupDetails='EMPTY';
}
} else {
$scope.todayFolloupDetails="No Folloups today!";
$scope.todayFolloupDetails='EMPTY';
}
});