|
|
|
|
@ -99,8 +99,11 @@ export class HomeComponent implements OnInit {
|
|
|
|
|
this.scheduledTime = this.convertInSeconds(data.P_SCHEDULED_HOURS.split(':'));
|
|
|
|
|
this.spentHours = this.convertInSeconds(data.P_SPENT_HOURS.split(':'));
|
|
|
|
|
this.isCheckedIn = this.spentHours === 0 ? false : true;
|
|
|
|
|
if (this.isCheckedIn) {
|
|
|
|
|
if (this.isCheckedIn && this.remainingTime != 0) {
|
|
|
|
|
this.initTimer();
|
|
|
|
|
} else if (this.isCheckedIn && this.remainingTime === 0) {
|
|
|
|
|
this.displayTime = '00:00:00';
|
|
|
|
|
this.percent = 100;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|