mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
Rename shared component attendee
This commit is contained in:
@@ -386,9 +386,7 @@
|
||||
class="d-flex flex-column height-100"
|
||||
*ngIf="mobileComponent.showAttendees"
|
||||
[eventAttendees]="contacts"
|
||||
(openAttendeesComponent)="openAttendeesComponent($event)"
|
||||
(openAddEvent)="openAddEvent()"
|
||||
(GoBackEditOrAdd)="GoBackEditOrAdd()"
|
||||
(closeComponent)="GoBackEditOrAdd()"
|
||||
(setContact)="setContact($event)"
|
||||
>
|
||||
</app-attendee-modal>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<ion-list lines="none" class="flex-grow-1 overflow-y-auto height-100" >
|
||||
<ion-item-sliding class="px-20">
|
||||
<div *ngFor="let attendee of contacts;">
|
||||
<ion-item (click)="selectContact(attendee)" *ngIf="checkbox(attendee)" >
|
||||
<ion-item (click)="selectContact(attendee)" *ngIf="filterSearchList(attendee)" >
|
||||
<div class="pr-10">
|
||||
<ion-icon class="font-35" src="assets/images/icons-userprofile.svg"></ion-icon>
|
||||
</div>
|
||||
@@ -26,9 +26,9 @@
|
||||
</ion-item-sliding>
|
||||
</ion-list>
|
||||
<hr/>
|
||||
<div class="px-20 font-15 pt-20" style="border-top:1px solid #ebebeb" *ngIf="selectedContact.length >= 1">Destinatário</div>
|
||||
<div class="px-20 font-15 pt-20" style="border-top:1px solid #ebebeb;font-weight: 500;" *ngIf="selectedContact.length >= 1">Destinatário</div>
|
||||
<ion-list lines="none" *ngIf="selectedContact.length >= 1" class="flex-grow-1 overflow-y-auto height-100 pb-0" >
|
||||
<ion-item-sliding class="px-20">
|
||||
<ion-item-sliding class="px-20">
|
||||
<ion-item *ngFor="let attendee of selectedContact;" class="d-flex">
|
||||
<div class="pr-10">
|
||||
<ion-icon class="font-35" src="assets/images/icons-userprofile.svg"></ion-icon>
|
||||
|
||||
@@ -19,8 +19,7 @@ export class AttendeeModalPage implements OnInit {
|
||||
|
||||
constructor(private modalCtrl: ModalController, private contactsService: ContactsService) { }
|
||||
|
||||
@Output() openAttendeesComponent = new EventEmitter<any>();
|
||||
@Output() GoBackEditOrAdd = new EventEmitter<any>();
|
||||
@Output() closeComponent = new EventEmitter<any>();
|
||||
@Output() setContact = new EventEmitter<any>();
|
||||
|
||||
ngOnInit() {
|
||||
@@ -29,16 +28,15 @@ export class AttendeeModalPage implements OnInit {
|
||||
}
|
||||
|
||||
save(){
|
||||
|
||||
// set data to agenda component
|
||||
this.setContact.emit(this.selectedContact);
|
||||
this.GoBackEditOrAdd.emit();
|
||||
this.closeComponent.emit();
|
||||
}
|
||||
|
||||
close(){
|
||||
// this.modalCtrl.dismiss(null);
|
||||
this.selectedContact = [];
|
||||
this.GoBackEditOrAdd.emit();
|
||||
this.closeComponent.emit();
|
||||
}
|
||||
|
||||
onChange(evt: any) {
|
||||
@@ -46,7 +44,7 @@ export class AttendeeModalPage implements OnInit {
|
||||
}
|
||||
|
||||
|
||||
checkbox(itm: EventPerson): boolean {
|
||||
filterSearchList(itm: EventPerson): boolean {
|
||||
const result = this.selectedContact.find((contact, index)=>{
|
||||
|
||||
if(contact.Name == itm.Name && contact.EmailAddress == itm.EmailAddress){
|
||||
|
||||
Reference in New Issue
Block a user