mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Add attendees for edit event modal
This commit is contained in:
@@ -61,7 +61,7 @@
|
||||
<div class="ion-input-class">
|
||||
<ion-select placeholder="Selecione tipo"
|
||||
[(ngModel)]="postEvent.Categories[0]"
|
||||
selectedText="{{postEvent.Categories[0]}}"
|
||||
selectedText="{{postEvent.Categories[0]}}"
|
||||
interface="action-sheet"
|
||||
Cancel-text="Cancelar" required>
|
||||
<ion-select-option value="Reunião">Reunião</ion-select-option>
|
||||
@@ -203,7 +203,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div hidden>
|
||||
<ion-item>
|
||||
<ion-label>Documentos Anexados</ion-label>
|
||||
|
||||
@@ -37,7 +37,7 @@ export class EditEventPage implements OnInit {
|
||||
private eventsService: EventsService,
|
||||
private alertService: AlertService,
|
||||
public alertController: AlertController,
|
||||
) {
|
||||
) {
|
||||
this.isEventEdited = false;
|
||||
this.postEvent = this.navParams.get('event');
|
||||
|
||||
@@ -75,7 +75,6 @@ export class EditEventPage implements OnInit {
|
||||
this.modalController.dismiss();
|
||||
}
|
||||
save(){
|
||||
console.log(this.postEvent);
|
||||
|
||||
this.eventsService.editEvent(this.postEvent, 2, 3).subscribe(async () => {
|
||||
const alert = await this.alertController.create({
|
||||
@@ -89,12 +88,11 @@ export class EditEventPage implements OnInit {
|
||||
this.modalController.dismiss(this.isEventEdited);
|
||||
}
|
||||
|
||||
async openAttendees()
|
||||
{
|
||||
async openAttendees() {
|
||||
|
||||
this.adding = 'intervenient';
|
||||
|
||||
if(window.innerWidth == 1024) {
|
||||
if(window.innerWidth <= 1024) {
|
||||
const modal = await this.modalController.create({
|
||||
component: AttendeesPage,
|
||||
componentProps: {
|
||||
@@ -115,7 +113,6 @@ export class EditEventPage implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
async dynamicSetIntervenient(data){
|
||||
@@ -125,7 +122,6 @@ export class EditEventPage implements OnInit {
|
||||
|
||||
async setIntervenient(data){
|
||||
this.taskParticipants = data;
|
||||
|
||||
this.postEvent.Attendees = data;
|
||||
}
|
||||
|
||||
@@ -135,11 +131,15 @@ export class EditEventPage implements OnInit {
|
||||
|
||||
async addParticipants(){
|
||||
this.adding = 'intervenient'
|
||||
|
||||
this.openAttendees();
|
||||
}
|
||||
|
||||
async addParticipantsCC(){
|
||||
this.adding = 'CC'
|
||||
|
||||
this.openAttendees();
|
||||
}
|
||||
|
||||
async closeComponent(){}
|
||||
}
|
||||
}
|
||||
@@ -15,6 +15,7 @@
|
||||
<div class="ion-item-container">
|
||||
<ion-input placeholder="Assunto" [(ngModel)]="postEvent.Subject"></ion-input>
|
||||
</div>
|
||||
|
||||
<div class="container-div">
|
||||
<div class="ion-item-class-2">
|
||||
<div class="ion-icon-class">
|
||||
|
||||
Reference in New Issue
Block a user