mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
save
This commit is contained in:
@@ -189,7 +189,7 @@ export class EditEventPage implements OnInit {
|
||||
}
|
||||
|
||||
this.postEvent.Attendees = this.taskParticipants.concat(this.taskParticipantsCc)
|
||||
|
||||
|
||||
this.postEvent.EventRecurrence.Type = this.selectedRecurringType;
|
||||
|
||||
this.eventsService.editEvent(this.postEvent, 2, 3).subscribe(async () => {
|
||||
@@ -204,7 +204,7 @@ export class EditEventPage implements OnInit {
|
||||
finally {
|
||||
this.goBack();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
this.toastService.successMessage();
|
||||
|
||||
@@ -213,7 +213,7 @@ export class EditEventPage implements OnInit {
|
||||
});
|
||||
|
||||
this.isEventEdited = true;
|
||||
|
||||
|
||||
this.modalController.dismiss(this.isEventEdited);
|
||||
|
||||
|
||||
@@ -285,7 +285,7 @@ export class EditEventPage implements OnInit {
|
||||
if(newAttendeesCC) {
|
||||
this.setIntervenientCC(newAttendeesCC);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -335,6 +335,9 @@ export class EditEventPage implements OnInit {
|
||||
this.loadedEventAttachments[index]['remove'] = true
|
||||
}
|
||||
|
||||
this.attachmentsService.deleteEventAttachmentById(attachmentID).subscribe(res => {
|
||||
console.log(res);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ export class AttachmentsService {
|
||||
|
||||
deleteEventAttachmentById(attachmentId) {
|
||||
|
||||
let geturl = environment.apiURL + `Attachments/Delete?attachmentId=${attachmentId}`;
|
||||
let geturl = environment.apiURL + 'Attachments/Delete';
|
||||
|
||||
let params = new HttpParams();
|
||||
|
||||
|
||||
@@ -166,7 +166,7 @@ export class EditEventPage implements OnInit {
|
||||
const str: any = this.postEvent.EventRecurrence.Type.toString()
|
||||
this.postEvent.EventRecurrence.Type = str
|
||||
}
|
||||
|
||||
|
||||
this.Form = new FormGroup({
|
||||
Subject: new FormControl(this.postEvent.Subject, [
|
||||
Validators.required,
|
||||
@@ -371,6 +371,7 @@ export class EditEventPage implements OnInit {
|
||||
|
||||
deleteAttachment(attachmentID: string, index) {
|
||||
|
||||
|
||||
const id: any = this.loadedEventAttachments[index].Id
|
||||
|
||||
if(id == 'add') {
|
||||
@@ -379,6 +380,10 @@ export class EditEventPage implements OnInit {
|
||||
this.loadedEventAttachments[index]['remove'] = true
|
||||
}
|
||||
|
||||
this.attachmentsService.deleteEventAttachmentById(attachmentID).subscribe(res => {
|
||||
console.log(res);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
async getDoc() {
|
||||
|
||||
Reference in New Issue
Block a user