Commit 017d5e24351de3fc96fc9480a114da26bceb4e97
1 parent
11b22496b5
Exists in
master
and in
1 other branch
Codigo identado y agregao case default a switch case
Showing
1 changed file
with
14 additions
and
15 deletions
Show diff stats
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; |