mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
add attendee component in gabinete digital
This commit is contained in:
@@ -47,7 +47,8 @@
|
||||
|
||||
</ion-content>
|
||||
|
||||
<ion-footer class="ion-no-border">
|
||||
<!-- Hide footer in gabinete-digital -->
|
||||
<ion-footer class="ion-no-border" *ngIf="currentPath != '/home/gabinete-digital' ">
|
||||
<ion-toolbar class="width-100 d-flex justify-space-between px-20">
|
||||
<ion-buttons slot="start">
|
||||
<ion-button class="btn-cancel" fill="clear" color="#061b52" (click)="close()">
|
||||
|
||||
@@ -22,6 +22,8 @@ export class AttendeeModalPage implements OnInit {
|
||||
@Output() closeComponent = new EventEmitter<any>();
|
||||
@Output() setContact = new EventEmitter<any>();
|
||||
|
||||
currentPath = window.location.pathname;
|
||||
|
||||
ngOnInit() {
|
||||
this.fetchContacts("");
|
||||
this.selectedContact = this.eventAttendees;
|
||||
@@ -33,6 +35,12 @@ export class AttendeeModalPage implements OnInit {
|
||||
this.closeComponent.emit();
|
||||
}
|
||||
|
||||
setContactWithClose(){
|
||||
if(this.currentPath == '/home/gabinete-digital'){
|
||||
this.setContact.emit(this.selectedContact);
|
||||
}
|
||||
}
|
||||
|
||||
close(){
|
||||
// this.modalCtrl.dismiss(null);
|
||||
this.selectedContact = [];
|
||||
@@ -66,13 +74,18 @@ export class AttendeeModalPage implements OnInit {
|
||||
return false;
|
||||
|
||||
});
|
||||
|
||||
// run only in gabinete digital
|
||||
this.setContactWithClose();
|
||||
|
||||
}
|
||||
|
||||
async selectContact(itm: EventPerson){
|
||||
|
||||
this.selectedContact.push(itm);
|
||||
|
||||
|
||||
// run only in gabinete digital
|
||||
this.setContactWithClose();
|
||||
}
|
||||
|
||||
async fetchContacts(filter: string) {
|
||||
|
||||
Reference in New Issue
Block a user