Merge branches 'developer-c' and 'developer-c' of https://bitbucket.org/equilibriumito/gabinete-digital into developer

This commit is contained in:
tiago.kayaya
2021-04-07 16:03:20 +01:00
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
@@ -993,7 +993,7 @@ export class AgendaPage implements OnInit {
}
// open component
async openAttendeesComponent(data){
async openAttendeesComponent(data) {
if(Array.isArray(data)){
if(data.length >= 1){
@@ -1004,7 +1004,6 @@ export class AgendaPage implements OnInit {
this.cloneAllmobileComponent();
this.mobileComponent.showAttendees = true;
}
async clearContact(){
@@ -1047,14 +1046,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;
}
}