Feature/migrate coupon redemption prompt dialog (#4150)
* Migrate coupon redemption prompt dialog * Update changelog
This commit is contained in:
parent
28f7781fa2
commit
ff7caf9c5c
@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
### Changed
|
||||
|
||||
- Improved support for automatic deletion of unused asset profiles when deleting activities
|
||||
- Migrated the coupon redemption to the notification service for prompt dialogs
|
||||
- Improved the language localization for German (`de`)
|
||||
- Eliminated `body-parser` in favor of using `@nestjs/platform-express`
|
||||
- Upgraded the _Stripe_ dependencies
|
||||
|
@ -164,8 +164,9 @@ export class UserAccountMembershipComponent implements OnDestroy {
|
||||
}
|
||||
|
||||
public onRedeemCoupon() {
|
||||
let couponCode = prompt($localize`Please enter your coupon code:`);
|
||||
couponCode = couponCode?.trim();
|
||||
this.notificationService.prompt({
|
||||
confirmFn: (value) => {
|
||||
const couponCode = value?.trim();
|
||||
|
||||
if (couponCode) {
|
||||
this.dataService
|
||||
@ -208,6 +209,9 @@ export class UserAccountMembershipComponent implements OnDestroy {
|
||||
});
|
||||
});
|
||||
}
|
||||
},
|
||||
title: $localize`Please enter your coupon code.`
|
||||
});
|
||||
}
|
||||
|
||||
public ngOnDestroy() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user