improve secrete-group

This commit is contained in:
Peter Maquiran
2022-06-17 16:02:32 +01:00
parent 7366bb7b41
commit d6ea689f57
36 changed files with 1817 additions and 131 deletions
@@ -171,8 +171,7 @@ export class ApproveEventPage implements OnInit {
modal.onDidDismiss()
.then( async (res) => {
if(res.data !== '') {
if(res.data.note !== '') {
let body = { "serialNumber": serialNumber,
"action": "Emendar",
"dataFields": {
@@ -192,8 +191,10 @@ export class ApproveEventPage implements OnInit {
loader.remove()
}
}
else{
this.toastService._badRequest('É necessário adicionar uma nota');
else {
if(res.data.option == 'save') {
this.toastService._badRequest('É necessário adicionar uma nota');
}
}
});