mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Improve Edit event for home page
This commit is contained in:
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user