@@ -92,7 +92,7 @@
| {{userPayment.cardName}} |
-
@@ -196,15 +196,15 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
diff --git a/store-front/src/app/components/my-profile/my-profile.component.ts b/store-front/src/app/components/my-profile/my-profile.component.ts
index a532ae0..a2a100c 100644
--- a/store-front/src/app/components/my-profile/my-profile.component.ts
+++ b/store-front/src/app/components/my-profile/my-profile.component.ts
@@ -44,6 +44,10 @@ export class MyProfileComponent implements OnInit {
constructor (private paymentService:PaymentService, private loginService: LoginService, private userService: UserService, private router: Router){
}
+ selectedIndexChange(val :number ){
+ this.selectedBillingTab=val;
+ }
+
onLogin() {
this.loginService.sendCredential(this.credential.username, this.credential.password).subscribe(
res=>{
@@ -107,6 +111,12 @@ export class MyProfileComponent implements OnInit {
);
}
+ onUpdatePayment(payment:UserPayment) {
+ this.userPayment = payment;
+ this.userBilling = payment.userBilling;
+ this.selectedBillingTab=1;
+ }
+
onRemovePayment(id:number) {
this.paymentService.removePayment(id).subscribe(
res => {
|