Improve generic components

This commit is contained in:
2021-02-24 10:08:50 +01:00
parent 7f5a698b20
commit 2336e6b83f
6 changed files with 59 additions and 29 deletions
@@ -90,13 +90,13 @@ export class NewEventPage implements OnInit {
}
}
close(){
this.modalController.dismiss();
this.onAddEvent.emit({
type:'close',
data: this.postEvent
});
}
save(){
console.log(this.postEvent);
console.log(this.profile);
if(this.profile=='mdgpr'){
this.eventService.postEventMd(this.postEvent, this.postEvent.CalendarName).subscribe();
}
@@ -104,7 +104,10 @@ export class NewEventPage implements OnInit {
this.eventService.postEventPr(this.postEvent, this.postEvent.CalendarName).subscribe();
}
this.onAddEvent.emit(this.postEvent);
this.onAddEvent.emit({
type:'save',
data: this.postEvent
});
}
async openAttendees()