Edit event from home page

This commit is contained in:
Peter Maquiran
2021-04-06 11:28:46 +01:00
parent 016c006edc
commit 38283f2855
9 changed files with 282 additions and 220 deletions
@@ -27,8 +27,9 @@
</ion-list>
<hr/>
<div class="px-20 font-15 pt-20" style="border-top:1px solid #ebebeb;font-weight: 500;" *ngIf="taskParticipants.length >= 1 || taskParticipantsCc.length >= 1" >Destinatário</div>
<ion-list lines="none" *ngIf="taskParticipants.length >= 1 && adding == 'intervenient' " class="flex-grow-1 overflow-y-auto height-100 pb-0" >
<div class="px-20 font-15 pt-20" style="border-top:1px solid #ebebeb;font-weight: 500;" *ngIf="taskParticipants.length >= 1 || taskParticipantsCc.length >= 1" > Destinatário</div>
<ion-item-sliding class="px-20">
<ion-item *ngFor="let attendee of taskParticipants;" class="d-flex">
<div class="pr-10">
@@ -45,6 +46,8 @@
</ion-item-sliding>
</ion-list>
<ion-list lines="none" *ngIf="taskParticipantsCc.length >= 1 && adding == 'CC' " class="flex-grow-1 overflow-y-auto height-100 pb-0" >
<div class="px-20 font-15 pt-20" style="border-top:1px solid #ebebeb;font-weight: 500;" *ngIf="taskParticipants.length >= 1 || taskParticipantsCc.length >= 1" > Destinatário</div>
<ion-item-sliding class="px-20">
<ion-item *ngFor="let attendee of taskParticipantsCc;" class="d-flex">
<div class="pr-10">
@@ -17,10 +17,8 @@ export class AttendeeModalPage implements OnInit {
selectedContact: EventPerson[] =[];
eventPersons: EventPerson[];
@Input() taskParticipants = [];
@Input() taskParticipantsCc= [];
@Input() eventAttendees: EventPerson[];
@Input() taskParticipants:EventPerson[] = [];
@Input() taskParticipantsCc:EventPerson[] = [];
constructor(private modalCtrl: ModalController, private contactsService: ContactsService) { }
@@ -35,9 +33,15 @@ export class AttendeeModalPage implements OnInit {
ngOnInit() {
this.fetchContacts("");
this.taskParticipants = this.taskParticipants
this.taskParticipantsCc = this.taskParticipantsCc;
if(this.taskParticipants == null || this.taskParticipants == undefined){
this.taskParticipants = [];
}
if(this.taskParticipantsCc == null || this.taskParticipantsCc == undefined){
this.taskParticipantsCc = [];
}
}
ngOnChanges(event){}
@@ -67,7 +71,6 @@ export class AttendeeModalPage implements OnInit {
this.fetchContacts(evt.detail.value);
}
filterSearchList(itm: EventPerson): boolean {
if(this.adding == "intervenient"){