|
|
@ -90,7 +90,12 @@ export class GfAdminOverviewComponent implements OnInit { |
|
|
protected activitiesCount: number; |
|
|
protected activitiesCount: number; |
|
|
protected couponDuration: StringValue = '14 days'; |
|
|
protected couponDuration: StringValue = '14 days'; |
|
|
protected readonly couponsDataSource = new MatTableDataSource<Coupon>(); |
|
|
protected readonly couponsDataSource = new MatTableDataSource<Coupon>(); |
|
|
protected readonly couponsDisplayedColumns = ['code', 'duration', 'actions']; |
|
|
protected readonly couponsDisplayedColumns = [ |
|
|
|
|
|
'code', |
|
|
|
|
|
'duration', |
|
|
|
|
|
'createdAt', |
|
|
|
|
|
'actions' |
|
|
|
|
|
]; |
|
|
protected hasPermissionForSubscription: boolean; |
|
|
protected hasPermissionForSubscription: boolean; |
|
|
protected hasPermissionForSystemMessage: boolean; |
|
|
protected hasPermissionForSystemMessage: boolean; |
|
|
protected hasPermissionToSyncDemoUserAccount: boolean; |
|
|
protected hasPermissionToSyncDemoUserAccount: boolean; |
|
|
@ -201,6 +206,7 @@ export class GfAdminOverviewComponent implements OnInit { |
|
|
protected onAddCoupon() { |
|
|
protected onAddCoupon() { |
|
|
const newCoupon: Coupon = { |
|
|
const newCoupon: Coupon = { |
|
|
code: `${ghostfolioPrefix}${this.generateCouponCode(14)}`, |
|
|
code: `${ghostfolioPrefix}${this.generateCouponCode(14)}`, |
|
|
|
|
|
createdAt: new Date().toISOString(), |
|
|
duration: this.couponDuration |
|
|
duration: this.couponDuration |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|