Browse Source
Bugfix/visibility of checkout button without price id (#8383)
Fix visibility of checkout button without price id
pull/8402/head
Thomas Kaul
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
4 additions and
1 deletions
-
apps/client/src/app/components/user-account-membership/user-account-membership.html
-
apps/client/src/app/pages/pricing/pricing-page.html
|
|
|
@ -14,7 +14,9 @@ |
|
|
|
@if (user?.subscription?.type === 'Basic') { |
|
|
|
<div class="d-flex flex-column mt-5"> |
|
|
|
@if ( |
|
|
|
hasPermissionForSubscription && hasPermissionToUpdateUserSettings |
|
|
|
hasPermissionForSubscription && |
|
|
|
hasPermissionToUpdateUserSettings && |
|
|
|
user?.subscription?.offer?.priceId |
|
|
|
) { |
|
|
|
<button color="primary" mat-flat-button (click)="onCheckout()"> |
|
|
|
@if (user.subscription.offer.isRenewal) { |
|
|
|
|
|
|
|
@ -188,6 +188,7 @@ |
|
|
|
} |
|
|
|
@if ( |
|
|
|
hasPermissionToUpdateUserSettings && |
|
|
|
user?.subscription?.offer?.priceId && |
|
|
|
user?.subscription?.type === 'Basic' |
|
|
|
) { |
|
|
|
<div class="mt-3 text-center"> |
|
|
|
|