This commit is contained in:
Peter Maquiran
2022-12-17 15:18:47 +01:00
parent c357966d2e
commit 82ff899199
2 changed files with 20 additions and 10 deletions
@@ -16,6 +16,7 @@ export class AttendeePage implements OnInit {
contacts: EventPerson[];
showLoader: boolean = false;
eventPersons: EventPerson[];
inputFilter = ''
@Output() closeComponent = new EventEmitter<any>();
@@ -39,10 +40,10 @@ export class AttendeePage implements OnInit {
public ThemeService: ThemeService ) {
this.LtaskParticipants = removeDuplicate(this.taskParticipants);
this.LtaskParticipantsCc = removeDuplicate(this.taskParticipantsCc);
}
this.LtaskParticipantsCc = removeDuplicate(this.taskParticipantsCc);
}
ngOnChanges(){
ngOnChanges() {
this.LtaskParticipants = removeDuplicate(this.taskParticipants);
this.LtaskParticipantsCc = removeDuplicate(this.taskParticipantsCc);
}
@@ -63,7 +64,6 @@ export class AttendeePage implements OnInit {
}
}
save() {
@@ -107,7 +107,7 @@ export class AttendeePage implements OnInit {
this.setContactWithClose();
}
close(){
close() {
this.closeComponent.emit();
}
@@ -140,7 +140,7 @@ export class AttendeePage implements OnInit {
});
// if to show
if(undefined != result2){
if(undefined != result2) {
return false;
}
@@ -149,7 +149,7 @@ export class AttendeePage implements OnInit {
}
remove(itm: EventPerson){
remove(itm: EventPerson) {
if(this.adding == "intervenient"){
@@ -178,7 +178,17 @@ export class AttendeePage implements OnInit {
}
sort(data: []) {
return data.sort(function (a: any, b: any) {
if (a.Name > b.Name) {
return -1;
}
if (b.Name > a.Name) {
return 1;
}
return 0;
}).reverse()
}
async fetchContacts(filter: string) {
this.showLoader = true;
@@ -196,7 +206,7 @@ export class AttendeePage implements OnInit {
});
}
this.contacts = result;
this.contacts = this.sort(result as any);
this.showLoader = false;
}
);