Improve validation for publication

This commit is contained in:
Peter Maquiran
2021-07-06 16:18:00 +01:00
parent ffdc7dd212
commit 1ecf7d386b
11 changed files with 249 additions and 61 deletions
@@ -18,6 +18,7 @@ import * as moment from 'moment';
templateUrl: './edit-event.page.html',
styleUrls: ['./edit-event.page.scss'],
})
export class EditEventPage implements OnInit {
stEvent: Event;
@@ -191,7 +192,10 @@ export class EditEventPage implements OnInit {
this.injectValidation()
this.runValidation()
if(this.Form.invalid) return false
if(this.Form.invalid) {
alert('error')
return false
}
this.getDatepickerData()
this.postEvent.Attendees = this.taskParticipants.concat(this.taskParticipantsCc);