mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
Fixe merge and improve sucess message
This commit is contained in:
@@ -223,7 +223,7 @@ export class CreateProcessPage implements OnInit {
|
||||
}
|
||||
|
||||
}
|
||||
executado(){
|
||||
async executado(){
|
||||
let body = {
|
||||
"serialNumber": this.task.serialNumber,
|
||||
"action": "Conhecimento",
|
||||
@@ -234,7 +234,14 @@ export class CreateProcessPage implements OnInit {
|
||||
"AttachmentList" :null,
|
||||
|
||||
}
|
||||
this.processes.CompleteTask(body);
|
||||
try {
|
||||
await this.processes.CompleteTask(body).toPromise()
|
||||
this.successMessage()
|
||||
} catch (error) {
|
||||
this.badRequest()
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
async addParticipants() {
|
||||
|
||||
Reference in New Issue
Block a user