bug solve seltet date

This commit is contained in:
Eudes Inácio
2024-06-11 16:23:09 +01:00
parent 58874016f9
commit c37d3f5f7f
8 changed files with 62 additions and 23 deletions
@@ -129,7 +129,7 @@ export class EditEventPage implements OnInit {
this.postEvent.Attendees[index].UserType = userData.UserType
}
console.log('jhv',this.postEvent.Category)
console.log('jhv', this.postEvent.Category)
}
@@ -367,7 +367,33 @@ export class EditEventPage implements OnInit {
}
}
async save_v2() {
validationEditAllEvent() {
if (this.postEvent.IsRecurring) {
this.alertController.create({
header: 'Editar evento?',
message: 'Este evento tem recorrência, deseja editar a Sequência de eventos?',
buttons: [
{
text: 'Sim',
handler: () => {
this.save_v2(true)
}
},
{
text: 'Não',
handler: () => {
this.save_v2(false)
}
}
]
}).then(res => {
res.present();
});
} else {
this.save_v2(false)
}
}
async save_v2(editAllEvent) {
this.injectValidation()
this.runValidation()
@@ -377,7 +403,8 @@ export class EditEventPage implements OnInit {
this.postEvent.Attendees = this.taskParticipants.concat(this.taskParticipantsCc);
try {
this.agendaDataRepository.updateEvent(this.postEvent.EventId, this.postEvent).subscribe((value) => {
this.agendaDataRepository.updateEvent(this.postEvent.EventId, this.postEvent, editAllEvent).subscribe((value) => {
console.log(value)
}, ((error) => {
console.log('edit event error: ', error)
@@ -632,11 +659,11 @@ export class EditEventPage implements OnInit {
const id: any = this.loadedEventAttachments[index].Id
this.deletedAttachmentsList.push(id)
/* if (id == 'add') {
this.loadedEventAttachments = this.loadedEventAttachments.filter((e, i) => i != index)
} else {
this.loadedEventAttachments[index]['remove'] = true
} */
/* if (id == 'add') {
this.loadedEventAttachments = this.loadedEventAttachments.filter((e, i) => i != index)
} else {
this.loadedEventAttachments[index]['remove'] = true
} */
}