mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
Fixe bug for create or veiw event
This commit is contained in:
@@ -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 -->
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user