Improve responsiveness

This commit is contained in:
Peter Maquiran
2021-05-06 13:32:54 +01:00
parent 75f9d789fd
commit 7d1fc22398
5 changed files with 7 additions and 5 deletions
@@ -44,7 +44,7 @@ export class ApproveEventModalPage implements OnInit {
window.onresize = (event) => {
// if not mobile remove all component
if( window.innerWidth >= 1024){
if( window.innerWidth >= 800){
this.modalController.dismiss(null);
}
};
@@ -56,7 +56,7 @@ export class EditEventPage implements OnInit {
}
}
if(this.postEvent.Attendees == null){
if(this.postEvent.Attendees == null) {
this.taskParticipants = []
} else {
@@ -86,10 +86,10 @@ export class EditEventPage implements OnInit {
window.onresize = (event) => {
// if not mobile remove all component
if( window.innerWidth >= 800){
if( window.innerWidth >= 1024) {
this.modalController.dismiss();
}
};
}
}
@@ -107,6 +107,7 @@ export class NewEventPage implements OnInit {
this.modalController.dismiss();
}
};
}
close(){
this.modalController.dismiss();
@@ -67,7 +67,7 @@ export class ViewEventPage implements OnInit {
window.onresize = (event) => {
// if not mobile remove all component
if( window.innerWidth >= 1024){
if( window.innerWidth >= 1024) {
this.modalController.dismiss(this.isEventEdited);
}
};
@@ -196,6 +196,7 @@ export class ExpedientTaskModalPage implements OnInit {
DispatchFolder: this.dispatchFolder,
AttachmentList: docs
}
console.log(JSON.stringify(this.postData))
console.log('this.postData', this.postData, this.taskType);
this.taskResult = await this.processes.postDespatcho(this.postData);
break;