mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
added if condition on error status
This commit is contained in:
@@ -107,7 +107,9 @@ export class PendentesPage implements OnInit {
|
||||
this.skeletonLoader = false;
|
||||
|
||||
}, (error) => {
|
||||
this.getFromDb();
|
||||
if(error.status == 0){
|
||||
this.getFromDb();
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
@@ -117,6 +119,7 @@ export class PendentesPage implements OnInit {
|
||||
this.platform.ready().then(() => {
|
||||
this.sqliteservice.getAllProcess().then((process: any[]) => {
|
||||
var pendingList = []
|
||||
console.log('Pendentes off off',process )
|
||||
process.forEach(element => {
|
||||
var workflow = JSON.parse(element.workflowInstanceDataFields);
|
||||
if (workflow.Status === "Pending") {
|
||||
|
||||
Reference in New Issue
Block a user