This commit is contained in:
Eudes Inácio
2024-06-04 13:18:00 +01:00
parent ed9ea95292
commit 96ead04066
5 changed files with 34 additions and 12 deletions
@@ -114,6 +114,7 @@ export class EditEventPage implements OnInit {
}
ngOnInit() {
this.loadedEventAttachments = this.postEvent.Attachments
console.log(this.postEvent)
this._postEvent = this.postEvent
this.allDayCheck = this.postEvent.IsAllDayEvent;
@@ -374,7 +375,7 @@ export class EditEventPage implements OnInit {
await this.saveDocument()
if (this.addedAttachmentsList.length > 0) {
this.agendaDataRepository.addEventAttachment(this._postEvent.EventId, this._postEvent.Attachments).subscribe((value) => {
this.agendaDataRepository.addEventAttachment(this._postEvent.EventId, this.loadedEventAttachments).subscribe((value) => {
console.log(value)
}, ((error) => {
this.showLoader = false
@@ -611,7 +612,7 @@ export class EditEventPage implements OnInit {
modal.onDidDismiss().then(async (res) => {
if (res) {
const data = res.data;
console.log(data)
console.log('Get Doc',data.selected)
/* const ApplicationIdDocumentToSave: any = {
SourceName: data.selected.Assunto,
@@ -537,13 +537,17 @@ export class NewEventPage implements OnInit {
this.agendaDataRepository.createEvent(this.postEvent, this.CalendarName, this.documents).subscribe((value) => {
console.log(value)
this.afterSave();
this.hhtpErrorHandle.httpsSucessMessagge('new event')
loader.remove();
}, ((error) => {
console.log('create event error: ', error)
loader.remove();
}));
loader.remove();
this.afterSave();
this.hhtpErrorHandle.httpsSucessMessagge('new event')
}
/* async save() {