This commit is contained in:
Peter Maquiran
2021-07-20 19:22:11 +01:00
parent f80394d830
commit a3b753dad9
13 changed files with 204 additions and 17 deletions
@@ -24,6 +24,7 @@ import { ThemePalette } from '@angular/material/core';
import { NgZone, ViewChild } from '@angular/core';
import { FormGroup, Validators } from '@angular/forms';
import { NGX_MAT_DATE_FORMATS } from '@angular-material-components/datetime-picker';
import { EliminateEventPage } from 'src/app/modals/eliminate-event/eliminate-event.page';
const moment = _rollupMoment || _moment;
@@ -227,6 +228,11 @@ export class NewEventPage implements OnInit {
injectValidation() {
if (typeof(this.postEvent.EventRecurrence.Type) == 'number') {
const str: any = this.postEvent.EventRecurrence.Type.toString()
this.postEvent.EventRecurrence.Type = str
}
this.Form = new FormGroup({
Subject: new FormControl(this.postEvent.Subject, [
Validators.required,
@@ -340,6 +346,8 @@ export class NewEventPage implements OnInit {
}
}
async save() {
this.injectValidation()