mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Fix
This commit is contained in:
@@ -138,8 +138,12 @@ export class DespachoPrPage implements OnInit {
|
||||
this.getDocumentDetails(this.task.FolderId, '361');
|
||||
|
||||
}, ()=>{
|
||||
this.toastService.badRequest('Processo não encontrado')
|
||||
this.goBack()
|
||||
try {
|
||||
this.toastService.badRequest('Processo não encontrado')
|
||||
this.goBack()
|
||||
} catch (e) {
|
||||
window.history.back();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -140,8 +140,12 @@ export class DespachoPage implements OnInit {
|
||||
});
|
||||
this.getDocumentDetails(this.task.FolderId, '361');
|
||||
}, ()=>{
|
||||
this.toastService.badRequest('Processo não encontrado')
|
||||
this.goBack()
|
||||
try {
|
||||
this.toastService.badRequest('Processo não encontrado')
|
||||
this.goBack()
|
||||
} catch (e) {
|
||||
window.history.back();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
+6
-2
@@ -124,8 +124,12 @@ export class DiplomaAssinarPage implements OnInit {
|
||||
this.getDocumentDetails(this.task.FolderId, '361');
|
||||
|
||||
}, ()=>{
|
||||
this.toastService.badRequest('Processo não encontrado')
|
||||
this.goBack()
|
||||
try {
|
||||
this.toastService.badRequest('Processo não encontrado')
|
||||
this.goBack()
|
||||
} catch (e) {
|
||||
window.history.back();
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@@ -139,8 +139,12 @@ export class DiplomaPage implements OnInit {
|
||||
this.getDocumentDetails(this.task.FolderId, '361');
|
||||
|
||||
}, ()=>{
|
||||
this.toastService.badRequest('Processo não encontrado')
|
||||
this.goBack()
|
||||
try {
|
||||
this.toastService.badRequest('Processo não encontrado')
|
||||
this.goBack()
|
||||
} catch (e) {
|
||||
window.history.back();
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
+6
-2
@@ -161,8 +161,12 @@ export class ExpedienteDetailPage implements OnInit {
|
||||
console.log('this.task.DocumentURL', this.task.DocumentURL)
|
||||
|
||||
}, ()=>{
|
||||
this.toastService.badRequest('Processo não encontrado')
|
||||
this.goBack()
|
||||
try {
|
||||
this.toastService.badRequest('Processo não encontrado')
|
||||
this.goBack()
|
||||
} catch (e) {
|
||||
window.history.back();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -185,8 +185,12 @@ export class ExpedientePrPage implements OnInit {
|
||||
})
|
||||
|
||||
}, ()=>{
|
||||
this.toastService.badRequest('Processo não encontrado')
|
||||
this.goBack()
|
||||
try {
|
||||
this.toastService.badRequest('Processo não encontrado')
|
||||
this.goBack()
|
||||
} catch (e) {
|
||||
window.history.back();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -157,7 +157,6 @@ export class PedidoPage implements OnInit {
|
||||
try {
|
||||
this.toastService.badRequest('Processo não encontrado')
|
||||
this.goBack()
|
||||
this.close()
|
||||
} catch (e) {
|
||||
window.history.back();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user