Commit 3d204ecbdc177cc446b987b155dfefe53a823a08
1 parent
2674b526a0
Exists in
develop
Fix
Variables declaradas.
Showing
2 changed files
with
9 additions
and
7 deletions
Show diff stats
src/app/shared/confirmacion/confirmacion.component.ts
1 | 1 | import { Component, OnInit, HostListener } from '@angular/core'; |
2 | -import { ArticuloService } from 'src/app/services/articulo/articulo.service'; | |
3 | -import { IArticulo } from 'src/app/interfaces/IArticulo'; | |
4 | 2 | import { BsModalRef } from 'ngx-bootstrap/modal'; |
5 | 3 | import { InactiveScreenService } from 'src/app/services/inactive-screen/inactive-screen.service'; |
6 | 4 | import { Subject } from 'rxjs'; |
5 | +import { APP_SETTINGS } from 'src/etc/AppSettings'; | |
7 | 6 | |
8 | 7 | @Component({ |
9 | 8 | selector: 'app-confirmacion', |
... | ... | @@ -11,11 +10,14 @@ import { Subject } from 'rxjs'; |
11 | 10 | styleUrls: ['./confirmacion.component.scss'] |
12 | 11 | }) |
13 | 12 | export class ConfirmacionComponent implements OnInit { |
14 | - idArticulo: number; | |
15 | - imagenArticulo: any; | |
16 | - detLarArticulo: string; | |
17 | - preVenArticulo: any; | |
13 | + titleMessage: string; | |
14 | + imagenPath: any; | |
15 | + footerMessageFirst: string; | |
16 | + footerMessageSecond: string; | |
17 | + footerConfirmation: number; | |
18 | + footerClose: string; | |
18 | 19 | onClose: Subject<any>; |
20 | + urlImagenes = `${APP_SETTINGS.apiDeboSuite}/imagenes/`; | |
19 | 21 | |
20 | 22 | constructor( |
21 | 23 | public modalRef: BsModalRef, |
src/app/shared/header-publicidad/header-publicidad.component.ts
... | ... | @@ -68,7 +68,7 @@ export class HeaderPublicidadComponent implements OnInit { |
68 | 68 | { |
69 | 69 | initialState: { |
70 | 70 | titleMessage: articulo.DET_LAR, |
71 | - imagenPath: articulo.imagenes, | |
71 | + imagenPath: articulo.imagenes.length ? articulo.imagenes[0].imagen : '', | |
72 | 72 | footerMessageFirst: `¿DESEA AGREGAR ESTE ARTÍCULO`, |
73 | 73 | footerMessageSecond: `a su carrito?`, |
74 | 74 | footerConfirmation: articulo.PreVen, |