This commit is contained in:
Peter Maquiran
2023-07-21 17:17:28 +01:00
parent 9967f52c80
commit 60078f6118
12 changed files with 29 additions and 42 deletions
@@ -105,7 +105,7 @@ export class DiplomaOptionsPage implements OnInit {
await this.arquivar(res.data.note, docs);
this.goBack();
} else if (actionName =='AssinarNew') {
await this.AssinarNew()
await this.AssinarNew(res.data.note, docs)
}
}
}, (error) => {
@@ -222,7 +222,6 @@ export class DiplomaOptionsPage implements OnInit {
try {
await this.processes.CompleteTask(body).toPromise()
this.close();
this.toastService._successMessage()
} catch (error) {
if(error.status == 0) {
@@ -235,7 +234,7 @@ export class DiplomaOptionsPage implements OnInit {
}
}
async AssinarNew() {
async AssinarNew(note, doc) {
let body = {
"InstanceId": this.task.InstanceID,
"FolderId": this.task.FolderID,
@@ -246,10 +245,10 @@ export class DiplomaOptionsPage implements OnInit {
try {
await this.processes.presidentialActionsSignature(body).toPromise()
this.httpErroHandle.httpsSucessMessagge('Assinado')
await this.sign(note, doc)
this.TaskService.loadDiplomas()
this.popoverController.dismiss("")
this.close();
} catch (error) {
this.httpErroHandle.httpStatusHandle(error)
}