fix date picker

This commit is contained in:
Peter Maquiran
2023-08-22 14:39:33 +01:00
parent 51a526644a
commit f9a4830a30
3 changed files with 23 additions and 7 deletions
+15
View File
@@ -131,6 +131,8 @@ export class HomePage implements OnInit {
);
}); */
}
goto(url) {
@@ -215,6 +217,19 @@ export class HomePage implements OnInit {
if (!this.p.userPermission([this.p.permissionList.Gabinete.md_tasks]) && SessionStore.user.RoleID == this.RoleIdService.PV) {
throw (`User doesn't has vice president permission but has roleId`);
}
(()=>{
document.addEventListener('click', (e: any) => {
const closest = e.target.closest(".mat-datepicker-content");
if(closest) {
e.preventDefault()
document.activeElement['blur']();
}
})
})()
}, 1000)
}
+1
View File
@@ -104,6 +104,7 @@ export class EventsPage implements OnInit {
this.listToPresent = [];
})
this.agendaColor = this.sessoStore.user.Profile
if(this.agendaColor != "PR") {
this.agendaColor = "MDGPR"