diff --git a/src/app/components/inicio/inicio.component.ts b/src/app/components/inicio/inicio.component.ts index b4a6f00..44190de 100644 --- a/src/app/components/inicio/inicio.component.ts +++ b/src/app/components/inicio/inicio.component.ts @@ -96,6 +96,7 @@ export class InicioComponent implements OnInit, AfterViewInit { producto.cantidad = 1; this.productoService.setProductos(producto); this.productoService.productoAcargar = this.promoAcargar = this.productoAcargar = undefined; + this.productoService.esPromoPersonalizada = false; this.promociones = []; this.popoverDirective.hide(); } @@ -184,6 +185,7 @@ export class InicioComponent implements OnInit, AfterViewInit { if (this.sinonimos.length > 0) { this.sinonimos = []; + this.productoService.esPromoPersonalizada = false; this.popoverDirective.hide(); } diff --git a/src/app/components/popover-sinonimos/popover-sinonimos.component.html b/src/app/components/popover-sinonimos/popover-sinonimos.component.html index 3ee3f79..f88cdb8 100644 --- a/src/app/components/popover-sinonimos/popover-sinonimos.component.html +++ b/src/app/components/popover-sinonimos/popover-sinonimos.component.html @@ -13,10 +13,17 @@
- Elija opción - Cantidad Restante {{cantidadRestanteSinonimos[i]}} +
+ Elija opción - + 0 + }"> + Cantidad Restante {{cantidadRestanteSinonimos}} +