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
@@ -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();
}