This commit is contained in:
Peter Maquiran
2021-07-17 14:02:05 +01:00
parent 133e3ad122
commit b1c165bf87
23 changed files with 240 additions and 142 deletions
@@ -71,7 +71,6 @@
</ion-list>
</div>
</div>
<div *ngIf="task" class="aside-right flex-column height-100">
@@ -476,9 +476,9 @@ export class PedidoPage implements OnInit {
let navigationExtras: NavigationExtras;
if (this.task.WorkflowName == 'Pedido de Deferimento') {
if (this.task.activityInstanceName == 'Concluir Deferimento') {
navigationExtras= { queryParams: {"deferimento": true,}};
} else if (this.task.WorkflowName == 'Pedido de Parecer') {
} else if (this.task.activityInstanceName == 'Tarefa de Parecer' ) {
navigationExtras = { queryParams: {"parecer": true,}};
}
@@ -493,12 +493,12 @@ export class PedidoPage implements OnInit {
let navigationExtras: NavigationExtras;
if (this.task.WorkflowName == 'Pedido de Deferimento') {
if (this.task.activityInstanceName == 'Concluir Deferimento') {
navigationExtras= { queryParams: {"deferimento": true,}};
} else if (this.task.WorkflowName == 'Pedido de Parecer') {
} else if (this.task.activityInstanceName == 'Tarefa de Parecer' ) {
navigationExtras = { queryParams: {"parecer": true,}};
}
this.router.navigate(['/home/gabinete-digital'], navigationExtras);
}
}
@@ -57,8 +57,12 @@ export class PedidosPage implements OnInit {
if(event instanceof NavigationStart && '/home/gabinete-digital/pedidos?parecer=true'.startsWith(event.url) ||
event instanceof NavigationStart && '/home/gabinete-digital/pedidos?deferimento=true'.startsWith(event.url)
) {
alert('resfresh')
this.refreshing()
if(window.location.pathname.split('/').length >= 4 && window.location.pathname.startsWith('/home/gabinete-digital')) {
this.refreshing()
} else {
this.LoadList()
}
}
});
}