Commit bfc48cd1658b6125d518e0e3322b06bf50e9bb3e
1 parent
358235858a
Exists in
develop
arreglo identacion
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
src/app/shared/confirmacion/confirmacion.component.ts
... | ... | @@ -3,6 +3,7 @@ import { ArticuloService } from 'src/app/services/articulo/articulo.service'; |
3 | 3 | import { IArticulo } from 'src/app/interfaces/IArticulo'; |
4 | 4 | import { BsModalRef } from 'ngx-bootstrap/modal'; |
5 | 5 | import { InactiveScreenService } from 'src/app/services/inactive-screen/inactive-screen.service'; |
6 | +import { Subject } from 'rxjs'; | |
6 | 7 | |
7 | 8 | @Component({ |
8 | 9 | selector: 'app-confirmacion', |
... | ... | @@ -12,12 +13,15 @@ import { InactiveScreenService } from 'src/app/services/inactive-screen/inactive |
12 | 13 | export class ConfirmacionComponent implements OnInit { |
13 | 14 | idArticulo: number; |
14 | 15 | articulo: IArticulo; |
16 | + onClose: Subject<any>; | |
15 | 17 | |
16 | 18 | constructor( |
17 | 19 | public modalRef: BsModalRef, |
18 | 20 | private articuloService: ArticuloService, |
19 | 21 | private inactiveScreen: InactiveScreenService, |
20 | - ) { } | |
22 | + ) { | |
23 | + this.onClose = new Subject(); | |
24 | + } | |
21 | 25 | |
22 | 26 | ngOnInit() { |
23 | 27 | this.articuloService.getById(this.idArticulo) |