This commit is contained in:
tiago.kayaya
2021-06-10 15:38:08 +01:00
parent 941447a479
commit fa788c425d
13 changed files with 156 additions and 95 deletions
@@ -93,6 +93,9 @@ export class EditEventPage implements OnInit {
this.modalController.dismiss();
}
}
if(window.innerWidth > 800){
this.showAttendees=true;
}
}
@@ -128,33 +131,36 @@ export class EditEventPage implements OnInit {
}
async openAttendees() {
if(window.innerWidth > 801){
this.showAttendees=true;
}
else{
const modal = await this.modalController.create({
component: AttendeesPage,
componentProps: {
adding: this.adding,
taskParticipants: this.taskParticipants,
taskParticipantsCc: this.taskParticipantsCc
},
cssClass: 'attendee',
backdropDismiss: false
});
await modal.present();
const modal = await this.modalController.create({
component: AttendeesPage,
componentProps: {
adding: this.adding,
taskParticipants: this.taskParticipants,
taskParticipantsCc: this.taskParticipantsCc
},
cssClass: 'attendee',
backdropDismiss: false
});
modal.onDidDismiss().then((data) => {
if(data){
data = data['data'];
await modal.present();
const newAttendees: EventPerson[] = data['taskParticipants'];
const newAttendeesCC: EventPerson[] = data['taskParticipantsCc'];
modal.onDidDismiss().then((data) => {
if(data){
data = data['data'];
const newAttendees: EventPerson[] = data['taskParticipants'];
const newAttendeesCC: EventPerson[] = data['taskParticipantsCc'];
this.setIntervenient(newAttendees);
this.setIntervenientCC(newAttendeesCC);
}
});
this.setIntervenient(newAttendees);
this.setIntervenientCC(newAttendeesCC);
}
});
}
}
@@ -170,7 +176,6 @@ export class EditEventPage implements OnInit {
addParticipants(){
this.adding = 'intervenient'
this.openAttendees();
}