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 *ngIf="(
mobileComponent.showAddNewEvent == false &&
mobileComponent.showEditEvent == false &&
mobileComponent.showEventDetails == false &&
mobileComponent.showEventList == false &&
mobileComponent.showEventToApprove == false &&
mobileComponent.showAttendees == false &&
mobileComponent.showAttendeeModal == false
mobileComponent.showAddNewEvent == false &&
mobileComponent.showEditEvent == false &&
mobileComponent.showEventDetails == false &&
mobileComponent.showEventList == false &&
mobileComponent.showEventToApprove == false &&
mobileComponent.showAttendees == false &&
mobileComponent.showAttendeeModal == false
)
"
class="text-black nothing-to-show">
+2 -4
View File
@@ -152,7 +152,7 @@ export class AgendaPage implements OnInit {
private router: Router,
private alertController: AlertService,
private sanitizer: DomSanitizer
) {
) {
this.calendarHeight = "333px";
this.showCalendar = true;
@@ -166,8 +166,6 @@ export class AgendaPage implements OnInit {
ngOnInit() {
this.profile = "mdgpr";
//Inicializar segment
/* localStorage.setItem('test', this.eventSelectedDate.toString()); */
this.router.events.forEach((event) => {
if(event instanceof NavigationEnd && event.url == "/home/agenda") {
@@ -180,7 +178,6 @@ export class AgendaPage implements OnInit {
}
});
window.onresize = (event) => {
// if not table remove all component
if( window.innerWidth <= 1024){
@@ -1002,6 +999,7 @@ export class AgendaPage implements OnInit {
this.adding = data.type
alert(this.adding)
this.cloneAllmobileComponent();
this.mobileComponent.showAttendees = true;
}
@@ -140,7 +140,7 @@
</ion-item>
</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>
</div>
</div>
@@ -154,13 +154,16 @@
</div>
<div class="ion-input-class-no-height flex-grow-1">
<div class="list-people">
<ion-item lines="none">
<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-item>
</div>
<div class="add-people">
<div class="add-people" (click)="addParticipantsCc()">
<ion-icon slot="start" src="assets/images/icons-arrow-forward.svg"></ion-icon>
</div>
</div>
@@ -132,10 +132,21 @@ export class NewEventPage implements OnInit {
this.setIntervenientCC.emit([]);
}
async openAttendees(){
this.saveTemporaryData();
this.openAttendeesComponent.emit();
async addParticipants() {
this.openAttendeesComponent.emit({
type: "intervenient"
});
this.clearContact.emit();
}
async addParticipantsCc() {
this.openAttendeesComponent.emit({
type: "CC"
});
this.clearContact.emit();
}
saveTemporaryData(){
@@ -34,6 +34,7 @@ export class AttendeeModalPage implements OnInit {
@Input() adding: "intervenient" | "CC";
ngOnInit() {
this.fetchContacts("");
if(this.taskParticipants == null || this.taskParticipants == undefined){