diff --git a/src/app/services/Repositorys/Agenda/agenda-data-repository.service.ts b/src/app/services/Repositorys/Agenda/agenda-data-repository.service.ts index 2ea3bfa9d..c758538b9 100644 --- a/src/app/services/Repositorys/Agenda/agenda-data-repository.service.ts +++ b/src/app/services/Repositorys/Agenda/agenda-data-repository.service.ts @@ -97,7 +97,7 @@ export class AgendaDataRepositoryService { } createEvent(eventData: Event, CalendarName, documents) { - console.log(eventData) + console.log('create evetn v2',eventData) let eventInput = { userId: this.utils.selectedCalendarUserId(CalendarName, eventData) as any, diff --git a/src/app/shared/agenda/new-event/new-event.page.html b/src/app/shared/agenda/new-event/new-event.page.html index 8d1c26662..67a4f53be 100644 --- a/src/app/shared/agenda/new-event/new-event.page.html +++ b/src/app/shared/agenda/new-event/new-event.page.html @@ -141,7 +141,7 @@ - + Nunca @@ -164,6 +164,36 @@ +
+
+
+ +
+ +
+ + + + + + + + +
+
+
+
diff --git a/src/app/shared/agenda/new-event/new-event.page.ts b/src/app/shared/agenda/new-event/new-event.page.ts index daed5ed17..f36e4b948 100644 --- a/src/app/shared/agenda/new-event/new-event.page.ts +++ b/src/app/shared/agenda/new-event/new-event.page.ts @@ -234,7 +234,7 @@ export class NewEventPage implements OnInit { Category: 'Reunião', HasAttachments: false, EventRecurrence: { - frequency: "never", until: this.autoEndTime, + frequency: this.eventRecurence, until: this.autoEndTime, Type: '' }, }; @@ -258,7 +258,7 @@ export class NewEventPage implements OnInit { Organizer: '', Category: 'Reunião', HasAttachments: false, - EventRecurrence: { frequency: "never", until: this.autoEndTime, + EventRecurrence: { frequency: this.eventRecurence, until: this.autoEndTime, Type: '' }, } } @@ -536,11 +536,12 @@ export class NewEventPage implements OnInit { return false } + let loader = this.toastService.loading(); this.postEvent.Attendees = this.taskParticipants.concat(this.taskParticipantsCc); this.postEvent.IsAllDayEvent = this.allDayCheck; - this.postEvent.EventRecurrence.frequency = this.eventRecurence; - + console.log('evenr rec 1 ',this.eventRecurence) + console.log('eent rec 2 ',this.postEvent.EventRecurrence.frequency) this.agendaDataRepository.createEvent(this.postEvent, this.CalendarName, this.documents).subscribe((value) => { console.log(value)