mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
save
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user