This commit is contained in:
Peter Maquiran
2021-11-09 15:37:59 +01:00
parent ad18a29846
commit bf226f2f49
28 changed files with 191 additions and 544 deletions
+4 -4
View File
@@ -88,10 +88,10 @@ export class DelegarPage implements OnInit {
async saveTask() {
if(this.taskParticipants.length < 1){
this.toastService.badRequest("Selecione um destinatário");
this.toastService._badRequest("Selecione um destinatário");
}
else if(this.taskParticipants.length > 1){
this.toastService.badRequest("Selecione apenas um destinatário");
this.toastService._badRequest("Selecione apenas um destinatário");
}
else {
let body = {
@@ -109,11 +109,11 @@ export class DelegarPage implements OnInit {
this.processes.DelegateTask(body).subscribe(res=>{
console.log(res);
this.toastService.successMessage('Processo delegado')
this.toastService._successMessage('Processo delegado')
this.close();
},
(error)=>{
this.toastService.badRequest("Processo não delegado")
this.toastService._badRequest("Processo não delegado")
},
()=>{
loader.remove()