File tree 2 files changed +2
-1
lines changed
projects/fusio-sdk/src/lib
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ <h1 class="card-title #-card-title">{{product.price|currency:paymentCurren
20
20
< li *ngFor ="let feature of product.features "> {{feature}}</ li >
21
21
</ ul >
22
22
< button *ngIf ="!isAuthenticated " type ="button " routerLink ="/register " class ="w-100 btn btn-lg btn-primary "> Register</ button >
23
- < button *ngIf ="isAuthenticated " type ="button " (click) ="doPurchase(1 ) " class ="w-100 btn btn-lg btn-primary "> Purchase</ button >
23
+ < button *ngIf ="isAuthenticated " type ="button " (click) ="doPurchase(product.planId ) " class ="w-100 btn btn-lg btn-primary "> Purchase</ button >
24
24
</ div >
25
25
</ div >
26
26
</ div >
Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ export interface #Config {
123
123
}
124
124
125
125
export interface Product {
126
+ planId : number ,
126
127
title : string ,
127
128
price : number ,
128
129
features : Array < string > ,
You can’t perform that action at this time.
0 commit comments