Browse Source

Migrate coupon redemption prompt dialog

pull/4150/head
Thomas Kaul 8 months ago
parent
commit
f1a54b9550
  1. 8
      apps/client/src/app/components/user-account-membership/user-account-membership.component.ts

8
apps/client/src/app/components/user-account-membership/user-account-membership.component.ts

@ -163,8 +163,9 @@ export class UserAccountMembershipComponent implements OnDestroy {
} }
public onRedeemCoupon() { public onRedeemCoupon() {
let couponCode = prompt($localize`Please enter your coupon code:`); this.notificationService.prompt({
couponCode = couponCode?.trim(); confirmFn: (value) => {
const couponCode = value?.trim();
if (couponCode) { if (couponCode) {
this.dataService this.dataService
@ -207,6 +208,9 @@ export class UserAccountMembershipComponent implements OnDestroy {
}); });
}); });
} }
},
title: $localize`Please enter your coupon code.`
});
} }
public ngOnDestroy() { public ngOnDestroy() {

Loading…
Cancel
Save