mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
bug solve seltet date
This commit is contained in:
@@ -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
|
||||
} */
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user