mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
bug fixed on despacho page about presenting despacho by serialnumber
This commit is contained in:
@@ -80,14 +80,11 @@ export class DespachoPage implements OnInit {
|
||||
return;
|
||||
}
|
||||
});
|
||||
|
||||
this.LoadTaskDetail(this.serialnumber)
|
||||
this.backgroundservice.registerBackService('Online', () => {
|
||||
this.LoadTaskDetail(this.serialnumber)
|
||||
});
|
||||
|
||||
|
||||
this.getFromDb()
|
||||
|
||||
}
|
||||
|
||||
close() {
|
||||
@@ -167,16 +164,15 @@ export class DespachoPage implements OnInit {
|
||||
});
|
||||
});
|
||||
}, (error) => {
|
||||
try {
|
||||
this.goBack()
|
||||
} catch (e) {
|
||||
this.location.back();
|
||||
} finally {
|
||||
if (error.status == 0) {
|
||||
this.toastService.badRequest('Não é possível visualizar este processo no modo offline')
|
||||
} else {
|
||||
this.toastService.badRequest('Processo não encontrado')
|
||||
if (error.status == 0) {
|
||||
this.getFromDb();
|
||||
} else {
|
||||
try {
|
||||
this.goBack()
|
||||
} catch (e) {
|
||||
this.location.back();
|
||||
}
|
||||
this.toastService.badRequest('Processo não encontrado')
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user