mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
improve
This commit is contained in:
@@ -176,7 +176,7 @@ export class NewEventPage implements OnInit {
|
||||
}
|
||||
|
||||
window.onresize = (event) => {
|
||||
if( window.innerWidth >= 1024){
|
||||
if( window.innerWidth >= 1024) {
|
||||
this.modalController.dismiss();
|
||||
}
|
||||
};
|
||||
@@ -186,9 +186,9 @@ export class NewEventPage implements OnInit {
|
||||
}
|
||||
|
||||
setDefaultTime() {
|
||||
console.log(this.CalendarDate)
|
||||
this.postEvent.StartDate = this.roundTimeQuarterHour(this.CalendarDate);
|
||||
this.postEvent.EndDate = this.postEvent.StartDate;
|
||||
// this.postEvent.EndDate = this.postEvent.StartDate;
|
||||
this.postEvent.EndDate = (new Date(this.postEvent.EndDate.getTime() + 15 * 60000))
|
||||
}
|
||||
|
||||
close() {
|
||||
@@ -446,7 +446,11 @@ export class NewEventPage implements OnInit {
|
||||
this.modalController.dismiss(data);
|
||||
|
||||
} catch (error) {
|
||||
this.toastService._badRequest()
|
||||
if(error.status == 0) {
|
||||
this.toastService._badRequest('Não é possível visualizar este processo no modo offline')
|
||||
} else {
|
||||
this.toastService._badRequest()
|
||||
}
|
||||
} finally {
|
||||
loader.remove()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user