This commit is contained in:
tiago.kayaya
2021-07-13 09:31:42 +01:00
parent f457952220
commit f1d706a0d5
4 changed files with 32 additions and 40 deletions
@@ -102,13 +102,12 @@ export class EditEventPage implements OnInit {
public alertController: AlertController,
private attachmentsService: AttachmentsService,
private toastService: ToastService ) {
//this.dateControlOccurrence = this.postEvent.EventRecurrence.LastOccurrence;
}
ngOnInit() {
console.log(this.postEvent);
this.dateControlOccurrence = new FormControl(moment(this.postEvent.EventRecurrence.LastOccurrence));
if(!this.restoreTemporaryData()) {
// clear
@@ -152,9 +151,14 @@ export class EditEventPage implements OnInit {
this.restoreDatepickerData();
this.getRecurrenceTypes();
this.selectedRecurringType = this.postEvent.EventRecurrence.Type.toString();
setTimeout(() => {
this.selectedRecurringType = this.postEvent.EventRecurrence.Type.toString();
console.log(this.selectedRecurringType);
}, 1000);
}
close() {
@@ -209,9 +213,9 @@ export class EditEventPage implements OnInit {
dateEnd: new FormControl(this.dateEnd, [
Validators.required
]),
IsRecurring: new FormControl(this.postEvent.IsRecurring, [
/* IsRecurring: new FormControl(this.postEvent.IsRecurring, [
Validators.required
]),
]), */
participantes: new FormControl(this.taskParticipants, [
Validators.required
]),