put loader in gabinete method enviar para pendentes

This commit is contained in:
EQUILIBRIUM\hirondino.van-dunem
2022-06-20 11:46:24 +01:00
parent 4ea374ad0a
commit 53ff43c05b
@@ -426,10 +426,12 @@ export class PedidoPage implements OnInit {
}
sendExpedienteToPending() {
const loader = this.toastService.loading()
this.processes.SetTaskToPending(this.serialnumber).subscribe(res => {
this.goBack();
loader.remove()
}, () => {
loader.remove()
this.toastService._badRequest('Processo não encontrado')
});
}