This commit is contained in:
tiago.kayaya
2021-08-06 09:02:51 +01:00
parent a14ca7366d
commit 2c28abbf12
8 changed files with 57 additions and 23 deletions
@@ -72,7 +72,7 @@ export class DespachosPage implements OnInit {
this.LoadList();
this.router.events.forEach((event) => {
if (event instanceof NavigationStart &&
if (event instanceof NavigationStart &&
event.url.startsWith('/home/gabinete-digital?despachos=true')) {
if(window.location.pathname.split('/').length >= 4 && window.location.pathname.startsWith('/home/gabinete-digital')) {
this.doRefresh()
@@ -105,7 +105,7 @@ export class DespachosPage implements OnInit {
this.skeletonLoader = true
let result = await this.processes.GetTasksList("Despacho", false).toPromise();
this.despachoList = new Array();
await result.filter(data => data.workflowInstanceDataFields.Status == "Active").forEach( (element, index) => {
@@ -136,7 +136,7 @@ export class DespachosPage implements OnInit {
this.despachoList = this.sortArrayISODate(this.despachoList).reverse();
this.despachoStore.reset(this.despachoList);
this.skeletonLoader = false
}
sortArrayISODate(myArray: any){
@@ -146,7 +146,7 @@ export class DespachosPage implements OnInit {
}
doRefresh() {
setTimeout(() => {
this.LoadList();
}, 1000);