Commit f48ea92e29cb5f9c484459c2b8b21ad539e0a6b2

Authored by Eric Fernandez
Exists in master and in 1 other branch validar_pve

Merge branch 'master' into 'master'

Master(mpuebla)

See merge request !69
src/app/components/busqueda-productos/busqueda-productos.component.ts
... ... @@ -41,25 +41,24 @@ export class BusquedaProductosComponent implements OnInit {
41 41 this.categoriaActive = 0;
42 42 this.title = 'Búsqueda';
43 43 break;
44   - case 'promociones':
45   - this.categorias = categorias;
46   - this.categoriaActive = 1;
47   - this.title = 'Promociones';
48   - break;
49   - case 'ordenar':
50   -
51   - this.categorias = categorias.filter((categoria: Categoria) => {
52   - return categoria.ES_PEDIDO;
53   - });
54   -
55   - this.categoriaActive = 0;
56   - this.title = 'Ordenar';
57   -
  44 + case 'promociones':
  45 + this.categorias = categorias;
  46 + this.categoriaActive = 1;
  47 + this.title = 'Promociones';
  48 + break;
  49 + case 'ordenar':
  50 + this.categorias = categorias.filter((categoria: Categoria) => {
  51 + return categoria.ES_PEDIDO;
  52 + });
  53 + this.categoriaActive = 0;
  54 + this.title = 'Ordenar';
58 55 break;
59 56 default:
  57 + this.categorias = categorias;
  58 + this.categoriaActive = 0;
  59 + this.title = 'Búsqueda';
60 60 break;
61 61 }
62   -
63 62 });
64 63  
65 64 this.productoService.productoAcargar = undefined;