mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
Fix
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user