mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 05:45:50 +00:00
web new api done
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user