mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 13:55:51 +00:00
bugs solved
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user