Add new component in agenda

This commit is contained in:
Peter Maquiran
2021-03-25 10:50:58 +01:00
parent 35102b380d
commit 9b71c33c7b
7 changed files with 58 additions and 28 deletions
@@ -6,7 +6,6 @@ import { Event } from 'src/app/models/event.model';
import { AttendeesPage } from 'src/app/pages/events/attendees/attendees.page';
import { ModalController } from '@ionic/angular';
@Component({
selector: 'app-new-event',
templateUrl: './new-event.component.html',
@@ -16,14 +15,15 @@ export class NewEventPage implements OnInit {
postEvent: Event;
eventBody: EventBody;
segment:string = "true";
eventAttendees: EventPerson[];
@Input() profile:string;
@Input() selectedSegment: string;
@Input() selectedDate: Date;
@Input() eventAttendees: EventPerson[];
@Output() onAddEvent = new EventEmitter<any>();
@Output() openAttendeesComponent = new EventEmitter<any>();
@Output() clearContact = new EventEmitter<any>();
minDate: string;
@@ -91,6 +91,7 @@ export class NewEventPage implements OnInit {
}
close(){
this.onAddEvent.emit(false);
this.clearContact.emit();
}
save(){
@@ -102,6 +103,8 @@ export class NewEventPage implements OnInit {
}
this.onAddEvent.emit(this.postEvent);
this.clearContact.emit();
}
async openAttendees(data: any)