This commit is contained in:
Peter Maquiran
2021-03-04 15:23:56 +01:00
parent bd2bcc4831
commit c16d9c7349
2 changed files with 15 additions and 0 deletions
@@ -42,6 +42,14 @@ S
this.LoadToApproveEvents();
}
});
window.onresize = (event) => {
// if not mobile remove all component
if( window.innerWidth <= 1024){
this.modalController.dismiss();
}
};
}
LoadToApproveEvents(){
@@ -37,6 +37,13 @@ export class GabineteDigitalPage implements OnInit {
private modalController: ModalController,
private eventService: EventsService,
private alertService: AlertService) {
window.onresize = (event) => {
// if not mobile remove all component
if( window.innerWidth <= 1024){
this.modalController.dismiss();
}
};
}