mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
New Services, New Login, Better things
This commit is contained in:
@@ -3,6 +3,7 @@ import { ModalController } from '@ionic/angular';
|
||||
|
||||
import { Event } from '../../models/event.model';
|
||||
import { EventsService } from 'src/app/services/events.service';
|
||||
import { EventBody } from 'src/app/models/eventbody.model';
|
||||
|
||||
@Component({
|
||||
selector: 'app-cal-modal',
|
||||
@@ -17,32 +18,13 @@ export class CalModalPage implements AfterViewInit {
|
||||
};
|
||||
|
||||
viewTitle: string;
|
||||
|
||||
public postEvent: Event = {
|
||||
EventId: '',
|
||||
Subject: '',
|
||||
Body: null,
|
||||
Location: '',
|
||||
CalendarId: '',
|
||||
CalendarName: '',
|
||||
StartDate: '',
|
||||
EndDate: '',
|
||||
EventType: '',
|
||||
RequiredAttendees: null,
|
||||
OptionalAttendees: null,
|
||||
HasAttachments: false,
|
||||
IsMeeting: false,
|
||||
IsRecurring: false,
|
||||
AppointmentState: 0,
|
||||
TimeZone: '',
|
||||
Organizer: '',
|
||||
Categories: null,
|
||||
Attachments: null,
|
||||
};
|
||||
|
||||
postEvent: Event;
|
||||
modalReady = false;
|
||||
|
||||
constructor(private modalCtrl: ModalController, private eventService: EventsService) { }
|
||||
constructor(private modalCtrl: ModalController, private eventService: EventsService) {
|
||||
this.postEvent = new Event();
|
||||
this.postEvent.Body = { BodyType : "1", Text : ""};
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
@@ -54,11 +36,8 @@ export class CalModalPage implements AfterViewInit {
|
||||
}
|
||||
|
||||
save(){
|
||||
this.modalCtrl.dismiss({postEvent: this.eventService.AddEvent(this.postEvent)});
|
||||
/* this.eventService.AddEvent(); */
|
||||
console.log("created");
|
||||
|
||||
|
||||
this.eventService.postEvent(this.postEvent, this.postEvent.CalendarName).subscribe();
|
||||
this.modalCtrl.dismiss();
|
||||
}
|
||||
|
||||
onViewTitleChanged(title){
|
||||
|
||||
Reference in New Issue
Block a user