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
+7 -7
View File
@@ -317,13 +317,13 @@
<div class="event-details bg-blue "> <div class="event-details bg-blue ">
<div *ngIf="( <div *ngIf="(
mobileComponent.showAddNewEvent == false && mobileComponent.showAddNewEvent == false &&
mobileComponent.showEditEvent == false && mobileComponent.showEditEvent == false &&
mobileComponent.showEventDetails == false && mobileComponent.showEventDetails == false &&
mobileComponent.showEventList == false && mobileComponent.showEventList == false &&
mobileComponent.showEventToApprove == false && mobileComponent.showEventToApprove == false &&
mobileComponent.showAttendees == false && mobileComponent.showAttendees == false &&
mobileComponent.showAttendeeModal == false mobileComponent.showAttendeeModal == false
) )
" "
class="text-black nothing-to-show"> class="text-black nothing-to-show">
+2 -4
View File
@@ -152,7 +152,7 @@ export class AgendaPage implements OnInit {
private router: Router, private router: Router,
private alertController: AlertService, private alertController: AlertService,
private sanitizer: DomSanitizer private sanitizer: DomSanitizer
) { ) {
this.calendarHeight = "333px"; this.calendarHeight = "333px";
this.showCalendar = true; this.showCalendar = true;
@@ -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){