mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
add delegar verification
This commit is contained in:
@@ -88,6 +88,7 @@ export class EditEventPage implements OnInit {
|
||||
|
||||
sesseionStora = SessionStore
|
||||
environment = environment
|
||||
allDayCheck: boolean = false;
|
||||
|
||||
constructor(
|
||||
private modalController: ModalController,
|
||||
@@ -112,6 +113,7 @@ export class EditEventPage implements OnInit {
|
||||
|
||||
this.caller = this.navParams.get('caller');
|
||||
this.initCalendarName = this.postEvent.CalendarName;
|
||||
this.allDayCheck = this.postEvent.IsAllDayEvent;
|
||||
|
||||
|
||||
|
||||
@@ -648,4 +650,28 @@ export class EditEventPage implements OnInit {
|
||||
}
|
||||
return string;
|
||||
}
|
||||
|
||||
onCheckboxChange(event: any) {
|
||||
if (this.allDayCheck) {
|
||||
this.postEvent.IsAllDayEvent = this.allDayCheck;
|
||||
this.postEvent.StartDate = this.setAlldayTime(this.postEvent.StartDate)
|
||||
|
||||
console.log('Recurso ativado!!');
|
||||
} else {
|
||||
this.postEvent.IsAllDayEvent = this.allDayCheck;
|
||||
console.log('Recurso desativado');
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
setAlldayTime(timeToReturn) {
|
||||
let date: any = new Date(timeToReturn) || new Date();
|
||||
let newdate = new Date();
|
||||
date.setHours(0)
|
||||
date.setMinutes(0)
|
||||
date.setSeconds(0);
|
||||
|
||||
|
||||
return date
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user