Attendess for new event for agenda

This commit is contained in:
Peter Maquiran
2021-04-08 15:45:45 +01:00
parent 31c7a73163
commit f059d41ef6
5 changed files with 30 additions and 17 deletions
+1 -3
View File
@@ -166,8 +166,6 @@ export class AgendaPage implements OnInit {
ngOnInit() { ngOnInit() {
this.profile = "mdgpr"; this.profile = "mdgpr";
//Inicializar segment
/* localStorage.setItem('test', this.eventSelectedDate.toString()); */
this.router.events.forEach((event) => { this.router.events.forEach((event) => {
if(event instanceof NavigationEnd && event.url == "/home/agenda") { if(event instanceof NavigationEnd && event.url == "/home/agenda") {
@@ -180,7 +178,6 @@ export class AgendaPage implements OnInit {
} }
}); });
window.onresize = (event) => { window.onresize = (event) => {
// if not table remove all component // if not table remove all component
if( window.innerWidth <= 1024){ if( window.innerWidth <= 1024){
@@ -1002,6 +999,7 @@ export class AgendaPage implements OnInit {
this.adding = data.type this.adding = data.type
alert(this.adding)
this.cloneAllmobileComponent(); this.cloneAllmobileComponent();
this.mobileComponent.showAttendees = true; this.mobileComponent.showAttendees = true;
} }
@@ -140,7 +140,7 @@
</ion-item> </ion-item>
</div> </div>
<div class="add-people" (click)="openAttendees()"> <div class="add-people" (click)="addParticipants()">
<ion-icon slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon> <ion-icon slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon>
</div> </div>
</div> </div>
@@ -154,13 +154,16 @@
</div> </div>
<div class="ion-input-class-no-height flex-grow-1"> <div class="ion-input-class-no-height flex-grow-1">
<div class="list-people"> <div class="list-people">
<ion-item lines="none"> <ion-item lines="none">
<ion-list> <ion-list>
<ion-label class="list-people-title">Com conhecimento</ion-label> <ion-label *ngIf="taskParticipantsCc.length ==0" class="list-people-title">Com conhecimento</ion-label>
<ion-label *ngFor="let participant of taskParticipantsCc">{{participant.Name}}</ion-label>
</ion-list> </ion-list>
</ion-item> </ion-item>
</div> </div>
<div class="add-people"> <div class="add-people" (click)="addParticipantsCc()">
<ion-icon slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon> <ion-icon slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon>
</div> </div>
</div> </div>
@@ -132,10 +132,21 @@ export class NewEventPage implements OnInit {
this.setIntervenientCC.emit([]); this.setIntervenientCC.emit([]);
} }
async openAttendees(){
this.saveTemporaryData(); async addParticipants() {
this.openAttendeesComponent.emit(); this.openAttendeesComponent.emit({
type: "intervenient"
});
this.clearContact.emit();
}
async addParticipantsCc() {
this.openAttendeesComponent.emit({
type: "CC"
});
this.clearContact.emit();
} }
saveTemporaryData(){ saveTemporaryData(){
@@ -34,6 +34,7 @@ export class AttendeeModalPage implements OnInit {
@Input() adding: "intervenient" | "CC"; @Input() adding: "intervenient" | "CC";
ngOnInit() { ngOnInit() {
this.fetchContacts(""); this.fetchContacts("");
if(this.taskParticipants == null || this.taskParticipants == undefined){ if(this.taskParticipants == null || this.taskParticipants == undefined){