This commit is contained in:
Peter Maquiran
2021-07-17 15:25:56 +01:00
parent cfef3ae7f0
commit 293c1690cc
7 changed files with 36 additions and 13 deletions
@@ -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();
}
});
}
@@ -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();
}
});
}
@@ -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();
}