edit recurrence event

This commit is contained in:
Eudes Inácio
2024-06-13 12:14:48 +01:00
parent 35b1f3ae08
commit b0583ce9e6
7 changed files with 84 additions and 13 deletions
@@ -170,12 +170,12 @@ export class EditEventPage implements OnInit {
}
ngOnInit() {
if(!this.postEvent.IsRecurring) {
if (!this.postEvent.IsRecurring) {
this.postEvent.EventRecurrence.frequency = 'never'
} else {
this.postEvent.EventRecurrence.frequency = this.utils.recurenceTypeSeleted(this.postEvent.EventRecurrence.frequency)
}
console.log(this.postEvent?.Attachments)
console.log(this.loadedEventAttachments)
window.onresize = (event) => {
@@ -377,11 +377,25 @@ export class EditEventPage implements OnInit {
this.alertController.create({
header: 'Editar evento?',
message: 'Este evento tem recorrência, deseja editar a Sequência de eventos?',
inputs: [
{
name: 'confirm',
type: 'checkbox',
label: '',
value: 'confirm',
checked: false
}
],
buttons: [
{
text: 'Sim',
handler: () => {
this.save_v2(true)
handler: (data) => {
// Check if the checkbox is checked
if (data.includes('confirm')) {
this.save_v2(true)
} else {
this.save_v2(false)
}
}
},
{