mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Improve attendess
This commit is contained in:
@@ -18,7 +18,11 @@ export class AttendeeModalPage implements OnInit {
|
||||
@Input() taskParticipants:EventPerson[] = [];
|
||||
@Input() taskParticipantsCc:EventPerson[] = [];
|
||||
|
||||
constructor(private modalCtrl: ModalController, private contactsService: ContactsService) { }
|
||||
constructor(
|
||||
private modalCtrl: ModalController,
|
||||
private contactsService: ContactsService ) {
|
||||
|
||||
}
|
||||
|
||||
@Output() closeComponent = new EventEmitter<any>();
|
||||
|
||||
@@ -45,7 +49,6 @@ export class AttendeeModalPage implements OnInit {
|
||||
ngOnChanges(event){}
|
||||
|
||||
save(){
|
||||
|
||||
this.setIntervenient.emit(this.taskParticipants);
|
||||
this.setIntervenientCC.emit(this.taskParticipantsCc);
|
||||
|
||||
@@ -60,7 +63,6 @@ export class AttendeeModalPage implements OnInit {
|
||||
}
|
||||
|
||||
close(){
|
||||
// this.modalCtrl.dismiss(null);
|
||||
this.closeComponent.emit();
|
||||
}
|
||||
|
||||
@@ -108,8 +110,6 @@ export class AttendeeModalPage implements OnInit {
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
} else if (this.adding == "CC") {
|
||||
|
||||
this.taskParticipantsCc = this.taskParticipantsCc.filter((contact, index) =>{
|
||||
@@ -136,10 +136,12 @@ export class AttendeeModalPage implements OnInit {
|
||||
|
||||
if(this.adding == "intervenient"){
|
||||
|
||||
itm.IsRequired = true;
|
||||
this.taskParticipants.push(itm);
|
||||
|
||||
} else if (this.adding == "CC") {
|
||||
|
||||
itm.IsRequired = false;
|
||||
this.taskParticipantsCc.push(itm);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user