Commit e634738c94203acbfa5048768d829994c5653690
1 parent
bc79cf796a
Exists in
develop
Fix
Routing entre formas de pago
Showing
1 changed file
with
3 additions
and
3 deletions
 
Show diff stats
src/app/shared/error-forma-pago/error-forma-pago.component.ts
| 1 | 1 | import { Component, OnInit } from '@angular/core'; | 
| 2 | -import { Router } from '@angular/router'; | |
| 2 | +import { Location } from '@angular/common'; | |
| 3 | 3 | import { BsModalRef } from 'ngx-bootstrap/modal'; | 
| 4 | 4 | |
| 5 | 5 | @Component({ | 
| ... | ... | @@ -10,14 +10,14 @@ import { BsModalRef } from 'ngx-bootstrap/modal'; | 
| 10 | 10 | export class ErrorFormaPagoComponent implements OnInit { | 
| 11 | 11 | |
| 12 | 12 | constructor( | 
| 13 | - private router: Router, | |
| 13 | + private location: Location, | |
| 14 | 14 | private modalRef: BsModalRef, | 
| 15 | 15 | ) { } | 
| 16 | 16 | |
| 17 | 17 | ngOnInit() { } | 
| 18 | 18 | |
| 19 | 19 | continuar() { | 
| 20 | - this.router.navigate(['forma-pago']); | |
| 20 | + this.location.back(); | |
| 21 | 21 | this.modalRef.hide(); | 
| 22 | 22 | } | 
| 23 | 23 |