mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
show default calendar
This commit is contained in:
@@ -124,6 +124,8 @@ export class NewEventPage implements OnInit {
|
|||||||
sharedCalendar: Observable<TableSharedCalendar[]>
|
sharedCalendar: Observable<TableSharedCalendar[]>
|
||||||
selectedUserCalendar:any;
|
selectedUserCalendar:any;
|
||||||
|
|
||||||
|
hasChangeCalendar = false
|
||||||
|
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private modalController: ModalController,
|
private modalController: ModalController,
|
||||||
@@ -185,7 +187,9 @@ export class NewEventPage implements OnInit {
|
|||||||
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
changeSegmentCalendar() {
|
||||||
|
this.hasChangeCalendar = true
|
||||||
|
}
|
||||||
async setCalendarByDefault(force) {
|
async setCalendarByDefault(force) {
|
||||||
if (!this.selectedUserCalendar || force) {
|
if (!this.selectedUserCalendar || force) {
|
||||||
|
|
||||||
@@ -498,7 +502,7 @@ export class NewEventPage implements OnInit {
|
|||||||
|
|
||||||
this.postEvent.Attendees = this.taskParticipants.concat(this.taskParticipantsCc);
|
this.postEvent.Attendees = this.taskParticipants.concat(this.taskParticipantsCc);
|
||||||
this.postEvent.IsAllDayEvent = this.allDayCheck;
|
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)
|
console.log(value)
|
||||||
loader.remove()
|
loader.remove()
|
||||||
this.hhtpErrorHandle.httpsSucessMessagge('new event')
|
this.hhtpErrorHandle.httpsSucessMessagge('new event')
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ export class NewEventPage implements OnInit {
|
|||||||
selectedUserCalendar:any;
|
selectedUserCalendar:any;
|
||||||
SessionStore = SessionStore
|
SessionStore = SessionStore
|
||||||
hasChangeCalendar = false
|
hasChangeCalendar = false
|
||||||
|
selectedUserCalendars
|
||||||
constructor(
|
constructor(
|
||||||
private modalController: ModalController,
|
private modalController: ModalController,
|
||||||
public eventService: EventsService,
|
public eventService: EventsService,
|
||||||
@@ -602,7 +602,7 @@ export class NewEventPage implements OnInit {
|
|||||||
console.log('evenr rec 1 ',this.eventRecurence)
|
console.log('evenr rec 1 ',this.eventRecurence)
|
||||||
console.log('eent rec 2 ',this.postEvent.EventRecurrence.frequency)
|
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)
|
console.log(value)
|
||||||
this.afterSave();
|
this.afterSave();
|
||||||
this.hhtpErrorHandle.httpsSucessMessagge('new event')
|
this.hhtpErrorHandle.httpsSucessMessagge('new event')
|
||||||
|
|||||||
Reference in New Issue
Block a user