web new api done

This commit is contained in:
Eudes Inácio
2024-06-04 11:56:56 +01:00
parent 399700c67c
commit 87ba7a6cd9
6 changed files with 34 additions and 34 deletions
@@ -104,13 +104,13 @@
<mat-form-field appearance="none" floatLabel="never" class="width-100" required>
<!-- <input matInput type="text" > -->
<mat-select placeholder="Selecione o tipo de evento*" matInput [(ngModel)]="_postEvent.Category">
<mat-option value="Reunião">
<mat-option value="Meeting">
Reunião
</mat-option>
<mat-option value="Viagem">
<mat-option value="Travel">
Viagem
</mat-option>
<mat-option value="Conferência">
<mat-option value="Conference">
Conferência
</mat-option>
<mat-option value="Encontro">
@@ -114,7 +114,6 @@ export class EditEventPage implements OnInit {
}
ngOnInit() {
this.postEvent.Category = 'Reunião';
console.log(this.postEvent)
this._postEvent = this.postEvent
this.allDayCheck = this.postEvent.IsAllDayEvent;
@@ -583,21 +582,17 @@ export class EditEventPage implements OnInit {
}
deleteAttachment(attachmentID: string, index) {
console.log(JSON.stringify(this.loadedEventAttachments))
const id: any = this.loadedEventAttachments[index].Id
this.loadedEventAttachments[index]['remove'] = true
console.log(id)
console.log(JSON.stringify(id))
let update = this.removeItemById(this.loadedEventAttachments, id)
this.loadedEventAttachments = update
console.log( update)
this.deletedAttachmentsList.push(id)
}
/* if (id == 'add') {
this.loadedEventAttachments = this.loadedEventAttachments.filter((e, i) => i != index)
} else {
this.loadedEventAttachments[index]['remove'] = true
console.log(id)
this.deletedAttachmentsList.push(id)
} */
removeItemById(array, id) {
return array.filter(item => item.Id !== id);
}
async getDoc() {