This commit is contained in:
tiago.kayaya
2021-04-05 14:13:13 +01:00
parent 9a36e1c2cb
commit 356732e919
15 changed files with 53 additions and 27 deletions
@@ -36,10 +36,15 @@ export class EditEventComponent implements OnInit {
private eventsService: EventsService,
public alertController: AlertController,
) {
}
ngOnInit() {
let innerHtml :string = this.postEvent.Body.Text;
this.postEvent.Body.Text = innerHtml;
console.log(this.postEvent);
this.isEventEdited = false;
if(this.postEvent.IsRecurring == false){
@@ -49,13 +54,13 @@ export class EditEventComponent implements OnInit {
this.isRecurring = "Repete";
}
}
close(){
console.log('!!!!!!!!!!!!!!!!! close')
this.closeComponent.emit();
this.clearContact.emit();
}
save(){
this.eventsService.editEvent(this.postEvent, 2, 3).subscribe(async () => {
const alert = await this.alertController.create({
cssClass: 'my-custom-class',