Commit 14a144eb224cf4685e99532c26ad7f5501bb4b27
1 parent
0a1cad4bbc
Exists in
develop
Correccion en scroll
Showing
3 changed files
with
7 additions
and
7 deletions
Show diff stats
src/app/modules/seleccion-articulos/seleccion-articulos.component.html
... | ... | @@ -26,7 +26,7 @@ |
26 | 26 | (contextmenu)="false" |
27 | 27 | class="h-100 d-block mx-auto rotate-90-neg" |
28 | 28 | src="assets/img/ir-color.svg" |
29 | - (mousedown)="scrollY(templateCategorias, -80)" | |
29 | + (mousedown)="scrollY(templateCategorias, -100)" | |
30 | 30 | (mouseup)="mouseup()" |
31 | 31 | (mouseleave)="mouseup()"> |
32 | 32 | </div> |
... | ... | @@ -67,7 +67,7 @@ |
67 | 67 | (contextmenu)="false" |
68 | 68 | class="h-100 d-block mx-auto rotate-90" |
69 | 69 | src="assets/img/ir-color.svg" |
70 | - (mousedown)="scrollY(templateCategorias, 80)" | |
70 | + (mousedown)="scrollY(templateCategorias, 100)" | |
71 | 71 | (mouseup)="mouseup()" |
72 | 72 | (mouseleave)="mouseup()"> |
73 | 73 | </div> |
src/app/modules/seleccion-articulos/seleccion-articulos.component.ts
... | ... | @@ -36,7 +36,7 @@ export class SeleccionArticulosComponent implements OnInit { |
36 | 36 | this.articuloService.getAll() |
37 | 37 | .subscribe((res: IArticulo[]) => { |
38 | 38 | this.articuloService.setArticulosSinImagen(res); |
39 | - localStorage.setItem('productos', JSON.stringify(res)); | |
39 | + localStorage.setItem('articulos', JSON.stringify(res)); | |
40 | 40 | this.setProductos(); |
41 | 41 | this.articulos = res; |
42 | 42 | }, err => console.error(err)); |
... | ... | @@ -65,7 +65,7 @@ export class SeleccionArticulosComponent implements OnInit { |
65 | 65 | this.categoriaActive = 0; |
66 | 66 | break; |
67 | 67 | } |
68 | - !localStorage.getItem('productos') ? | |
68 | + !localStorage.getItem('articulos') ? | |
69 | 69 | this.getProductos() : |
70 | 70 | this.setProductos(); |
71 | 71 | }); |
... | ... | @@ -83,7 +83,7 @@ export class SeleccionArticulosComponent implements OnInit { |
83 | 83 | result = tempArticulos; |
84 | 84 | }); |
85 | 85 | } |
86 | - localStorage.setItem('productos', JSON.stringify(result)); | |
86 | + localStorage.setItem('articulos', JSON.stringify(result)); | |
87 | 87 | this.setProductos(); |
88 | 88 | }, (error) => { |
89 | 89 | this.showSpinner = false; |
... | ... | @@ -92,7 +92,7 @@ export class SeleccionArticulosComponent implements OnInit { |
92 | 92 | } |
93 | 93 | |
94 | 94 | setProductos() { |
95 | - this.articulos = JSON.parse(localStorage.getItem('productos')); | |
95 | + this.articulos = JSON.parse(localStorage.getItem('articulos')); | |
96 | 96 | this.filterItems(); |
97 | 97 | } |
98 | 98 |