Commit 2a7315c2779022da2f0f6ff85b3a2b894e52710c
1 parent
a052e0f38a
Exists in
develop
Fix
Al cerrar modal de promocion
Showing
2 changed files
with
6 additions
and
1 deletions
Show diff stats
src/app/modules/seleccion-articulos/seleccion-articulos.component.ts
... | ... | @@ -129,11 +129,15 @@ export class SeleccionArticulosComponent implements OnInit, AfterViewInit, OnDes |
129 | 129 | } |
130 | 130 | |
131 | 131 | openModalPromos(articulo: IArticulo) { |
132 | + if (this.modalRef) return; | |
132 | 133 | this.articuloService.setArticulosSinImagen([articulo]); |
133 | 134 | this.modalRef = this.modalService.show(PromocionComponent, { |
134 | 135 | initialState: { articulosPromo: [articulo] }, |
135 | - class: 'modal-dialog-centered' | |
136 | + class: 'modal-dialog-centered', | |
137 | + ignoreBackdropClick: true, | |
136 | 138 | }); |
139 | + this.modalRef.content.onClose | |
140 | + .subscribe(() => this.modalRef = null); | |
137 | 141 | this.mediaPantalla(); |
138 | 142 | } |
139 | 143 |
src/app/shared/promocion/promocion.component.ts