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 | import { Component, OnInit } from '@angular/core'; | 1 | import { Component, OnInit } from '@angular/core'; |
2 | import { Router } from '@angular/router'; | 2 | import { Location } from '@angular/common'; |
3 | import { BsModalRef } from 'ngx-bootstrap/modal'; | 3 | import { BsModalRef } from 'ngx-bootstrap/modal'; |
4 | 4 | ||
5 | @Component({ | 5 | @Component({ |
6 | selector: 'app-error-forma-pago', | 6 | selector: 'app-error-forma-pago', |
7 | templateUrl: './error-forma-pago.component.html', | 7 | templateUrl: './error-forma-pago.component.html', |
8 | styleUrls: ['./error-forma-pago.component.scss'] | 8 | styleUrls: ['./error-forma-pago.component.scss'] |
9 | }) | 9 | }) |
10 | export class ErrorFormaPagoComponent implements OnInit { | 10 | export class ErrorFormaPagoComponent implements OnInit { |
11 | 11 | ||
12 | constructor( | 12 | constructor( |
13 | private router: Router, | 13 | private location: Location, |
14 | private modalRef: BsModalRef, | 14 | private modalRef: BsModalRef, |
15 | ) { } | 15 | ) { } |
16 | 16 | ||
17 | ngOnInit() { } | 17 | ngOnInit() { } |
18 | 18 | ||
19 | continuar() { | 19 | continuar() { |
20 | this.router.navigate(['forma-pago']); | 20 | this.location.back(); |
21 | this.modalRef.hide(); | 21 | this.modalRef.hide(); |
22 | } | 22 | } |
23 | 23 | ||
24 | } | 24 | } |
25 | 25 |