Improve Edit event for home page

This commit is contained in:
Peter Maquiran
2021-04-06 13:55:17 +01:00
parent f531356aff
commit f01c7f1184
3 changed files with 15 additions and 4 deletions
@@ -179,8 +179,8 @@
</div>
</div>
<div class="container-div width-100">
<div class="ion-item-class-2">
<div class="container-div width-100 pb-20">
<div class="ion-item-class-2 d-flex">
<div class="ion-icon-class">
<ion-icon slot="start" src="assets/images/icons-description.svg"></ion-icon>
</div>
@@ -225,6 +225,7 @@
[taskParticipants]="taskParticipants"
[taskParticipantsCc]="taskParticipantsCc"
[adding]="adding"
(dynamicSetIntervenient)="dynamicSetIntervenient($event)"
></app-attendee-modal>
</div>
@@ -118,6 +118,11 @@ export class EditEventPage implements OnInit {
}
async dynamicSetIntervenient(data){
this.taskParticipants = data['taskParticipants'];
this.taskParticipantsCc = data['taskParticipantsCc'];
}
async setIntervenient(data){
this.taskParticipants = data;
@@ -2,7 +2,6 @@ import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { ModalController } from '@ionic/angular';
import { ContactsService } from 'src/app/services/contacts.service';
import { EventPerson } from 'src/app/models/eventperson.model';
import { el } from 'date-fns/locale';
@Component({
selector: 'app-attendee-modal',
@@ -26,6 +25,7 @@ export class AttendeeModalPage implements OnInit {
@Output() setIntervenient = new EventEmitter<any>();
@Output() setIntervenientCC = new EventEmitter<any>();
@Output() dynamicSetIntervenient = new EventEmitter<any>();
currentPath = window.location.pathname;
@Input() adding: "intervenient" | "CC";
@@ -39,7 +39,6 @@ export class AttendeeModalPage implements OnInit {
if(this.taskParticipantsCc == null || this.taskParticipantsCc == undefined){
this.taskParticipantsCc = [];
}
}
@@ -126,6 +125,12 @@ export class AttendeeModalPage implements OnInit {
}
this.dynamicSetIntervenient.emit({
taskParticipants: this.taskParticipants,
taskParticipantsCc: this.taskParticipantsCc
})
this.setContactWithClose();
}