bugs solved

This commit is contained in:
Eudes Inácio
2024-02-29 09:58:08 +01:00
parent 71699c3c39
commit d59f772859
5 changed files with 89 additions and 72 deletions
@@ -244,6 +244,9 @@ export class DocumentSetUpMeetingPage implements OnInit {
runValidation() {
this.validateFrom = true
if (new Date(this.postData.StartDate).getTime() > new Date(this.postData.EndDate).getTime()) {
this.toastService._badRequest("A data de fim não pode ser inferior a data de início do evento")
}
}
get dateValid() {
@@ -305,7 +308,7 @@ export class DocumentSetUpMeetingPage implements OnInit {
async saveTask() {
if (this.loggeduser.Profile == 'MDGPR') {
if (this.loggeduser.Profile != 'PR') {
this.injectValidation()
this.runValidation()
if (this.Form.invalid) return false