show default calendar

This commit is contained in:
Peter Maquiran
2024-06-12 14:53:41 +01:00
parent 732644ea41
commit defb1578fd
2 changed files with 8 additions and 4 deletions
@@ -124,6 +124,8 @@ export class NewEventPage implements OnInit {
sharedCalendar: Observable<TableSharedCalendar[]>
selectedUserCalendar:any;
hasChangeCalendar = false
constructor(
private modalController: ModalController,
@@ -185,7 +187,9 @@ export class NewEventPage implements OnInit {
return false
}
changeSegmentCalendar() {
this.hasChangeCalendar = true
}
async setCalendarByDefault(force) {
if (!this.selectedUserCalendar || force) {
@@ -498,7 +502,7 @@ export class NewEventPage implements OnInit {
this.postEvent.Attendees = this.taskParticipants.concat(this.taskParticipantsCc);
this.postEvent.IsAllDayEvent = this.allDayCheck;
this.agendaDataRepository.createEvent(this.postEvent, this.CalendarName, this.documents).subscribe((value) => {
this.agendaDataRepository.createEvent(this.postEvent, this.selectedUserCalendar, this.documents).subscribe((value) => {
console.log(value)
loader.remove()
this.hhtpErrorHandle.httpsSucessMessagge('new event')
@@ -148,7 +148,7 @@ export class NewEventPage implements OnInit {
selectedUserCalendar:any;
SessionStore = SessionStore
hasChangeCalendar = false
selectedUserCalendars
constructor(
private modalController: ModalController,
public eventService: EventsService,
@@ -602,7 +602,7 @@ export class NewEventPage implements OnInit {
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) => {
this.agendaDataRepository.createEvent(this.postEvent, this.selectedUserCalendar, this.documents).subscribe((value) => {
console.log(value)
this.afterSave();
this.hhtpErrorHandle.httpsSucessMessagge('new event')