This commit is contained in:
tiago.kayaya
2021-05-25 18:01:57 +01:00
parent 18260ddc63
commit 7c4e46a9df
@@ -355,7 +355,8 @@ export class GabineteDigitalPage implements OnInit {
openPedidosPage(segment:string){ openPedidosPage(segment:string){
this.closeAllDesktopComponents(); this.closeAllDesktopComponents();
if( window.innerWidth <= 800) { if( window.innerWidth <= 800) {
this.openPedidoList(); //this.openPedidoList();
this.router.navigate(['/home/gabinete-digital/pedidos']);
} }
else{ else{
this.segment = segment; this.segment = segment;
@@ -368,7 +369,8 @@ export class GabineteDigitalPage implements OnInit {
openDespachosPage(segment:string){ openDespachosPage(segment:string){
this.closeAllDesktopComponents(); this.closeAllDesktopComponents();
if( window.innerWidth <= 800){ if( window.innerWidth <= 800){
this.openDespachoList(); //this.openDespachoList();
this.router.navigate(['/home/gabinete-digital/despachos']);
} }
else{ else{
let navigationExtras: NavigationExtras = {queryParams: {"despachos": true,}}; let navigationExtras: NavigationExtras = {queryParams: {"despachos": true,}};
@@ -380,7 +382,8 @@ export class GabineteDigitalPage implements OnInit {
openDespachosPrPage(segment:string) { openDespachosPrPage(segment:string) {
this.closeAllDesktopComponents(); this.closeAllDesktopComponents();
if( window.innerWidth <= 800){ if( window.innerWidth <= 800){
this.openDespachoListPr(); //this.openDespachoListPr();
this.router.navigate(['/home/gabinete-digital/despachos-pr']);
} }
else{ else{
let navigationExtras: NavigationExtras = {queryParams: {"despachospr": true,}}; let navigationExtras: NavigationExtras = {queryParams: {"despachospr": true,}};