Fixe bug for create or veiw event

This commit is contained in:
Peter Maquiran
2021-04-07 15:13:31 +01:00
parent bcd085e01c
commit 3f0bd5de53
5 changed files with 35 additions and 12 deletions
+7 -1
View File
@@ -335,6 +335,7 @@
[profile]="profile"
[selectedSegment]=segment
[taskParticipants]="taskParticipants"
[taskParticipantsCc]="taskParticipantsCc"
[selectedDate]="eventSelectedDate"
(onAddEvent)="openAddEventDismiss($event)"
(openAttendeesComponent)="openAttendeesComponent($event)"
@@ -342,7 +343,9 @@
[eventAttendees]="contacts"
(clearContact)="clearContact()"
(setContact)="setContact($event)"
(setIntervenient)="setIntervenient($event)"
(setIntervenientCC)="setIntervenientCC($event)"
></app-new-event>
<!-- Edit -->
<app-edit-event *ngIf="mobileComponent.showEditEvent"
@@ -353,6 +356,9 @@
(openAttendeesComponent)="openAttendeesComponent($event)"
(setContact)="setContact($event)"
(closeComponent)="closeComponentEditEventOrAdd()"
(setIntervenient)="setIntervenient($event)"
(setIntervenientCC)="setIntervenientCC($event)"
></app-edit-event>
<!-- View -->
+9 -5
View File
@@ -992,7 +992,7 @@ export class AgendaPage implements OnInit {
}
// open component
async openAttendeesComponent(data){
async openAttendeesComponent(data) {
if(Array.isArray(data)){
if(data.length >= 1){
@@ -1003,7 +1003,6 @@ export class AgendaPage implements OnInit {
this.cloneAllmobileComponent();
this.mobileComponent.showAttendees = true;
}
async clearContact(){
@@ -1046,14 +1045,19 @@ export class AgendaPage implements OnInit {
}
async setIntervenient(data){
async setIntervenient(data) {
this.taskParticipants = data;
this.postEvent
}
async setIntervenientCC(data){
async setIntervenientCC(data) {
this.taskParticipantsCc = data;
}
// Emitters
// adding
async setAdding(adding: "intervenient" | "CC" = "intervenient") {
this.adding = adding;
}
}