From 017d5e24351de3fc96fc9480a114da26bceb4e97 Mon Sep 17 00:00:00 2001 From: mpuebla Date: Tue, 3 Sep 2019 12:08:21 -0300 Subject: [PATCH] Codigo identado y agregao case default a switch case --- .../busqueda-productos.component.ts | 29 +++++++++++----------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/app/components/busqueda-productos/busqueda-productos.component.ts b/src/app/components/busqueda-productos/busqueda-productos.component.ts index ae037dd..627226e 100644 --- a/src/app/components/busqueda-productos/busqueda-productos.component.ts +++ b/src/app/components/busqueda-productos/busqueda-productos.component.ts @@ -41,25 +41,24 @@ export class BusquedaProductosComponent implements OnInit { this.categoriaActive = 0; this.title = 'Búsqueda'; break; - case 'promociones': - this.categorias = categorias; - this.categoriaActive = 1; - this.title = 'Promociones'; - break; - case 'ordenar': - - this.categorias = categorias.filter((categoria: Categoria) => { - return categoria.ES_PEDIDO; - }); - - this.categoriaActive = 0; - this.title = 'Ordenar'; - + case 'promociones': + this.categorias = categorias; + this.categoriaActive = 1; + this.title = 'Promociones'; + break; + case 'ordenar': + this.categorias = categorias.filter((categoria: Categoria) => { + return categoria.ES_PEDIDO; + }); + this.categoriaActive = 0; + this.title = 'Ordenar'; break; default: + this.categorias = categorias; + this.categoriaActive = 0; + this.title = 'Búsqueda'; break; } - }); this.productoService.productoAcargar = undefined; -- 1.9.1