remove alert

This commit is contained in:
Peter Maquiran
2021-04-12 10:01:43 +01:00
parent 97d8d05179
commit eba5b0497d
8 changed files with 301 additions and 263 deletions
@@ -44,10 +44,12 @@ export class AttendeeModalPage implements OnInit {
if(this.taskParticipantsCc == null || this.taskParticipantsCc == undefined) {
this.taskParticipantsCc = [];
}
}
ngOnChanges(event){}
ngOnChanges(event){
}
save(){
this.setIntervenient.emit(this.taskParticipants);
@@ -61,6 +63,32 @@ export class AttendeeModalPage implements OnInit {
this.setIntervenient.emit(this.taskParticipants);
this.setIntervenientCC.emit(this.taskParticipantsCc);
}
console.log('data', this.taskParticipants, this.taskParticipantsCc );
this.dynamicSetIntervenient.emit({
taskParticipants: this.taskParticipants,
taskParticipantsCc: this.taskParticipantsCc
})
}
async selectContact(itm: EventPerson){
if(this.adding == "intervenient") {
itm.IsRequired = true;
this.taskParticipants.push(itm);
} else if (this.adding == "CC") {
itm.IsRequired = false;
this.taskParticipantsCc.push(itm);
} else {
// alert('bug')
}
// run only in gabinete digital
this.setContactWithClose();
}
close(){
@@ -130,32 +158,11 @@ export class AttendeeModalPage implements OnInit {
});
}
this.dynamicSetIntervenient.emit({
taskParticipants: this.taskParticipants,
taskParticipantsCc: this.taskParticipantsCc
})
this.setContactWithClose();
}
async selectContact(itm: EventPerson){
if(this.adding == "intervenient"){
itm.IsRequired = true;
this.taskParticipants.push(itm);
} else if (this.adding == "CC") {
itm.IsRequired = false;
this.taskParticipantsCc.push(itm);
}
// run only in gabinete digital
this.setContactWithClose();
}
async fetchContacts(filter: string) {
this.showLoader = true;