Browse Source
Bugfix/visibility of Try Premium button (#8187)
Fix visibility of Try Premium button
pull/8190/head^2
Thomas Kaul
12 hours ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with
12 additions and
1 deletions
-
apps/client/src/app/components/user-account-membership/user-account-membership.html
-
apps/client/src/app/services/user/user.service.ts
-
libs/common/src/lib/interfaces/user.interface.ts
|
|
@ -50,7 +50,7 @@ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
<div class="align-items-center d-flex justify-content-center mt-4"> |
|
|
<div class="align-items-center d-flex justify-content-center mt-4"> |
|
|
@if (!user?.subscription?.expiresAt) { |
|
|
@if (!user?.subscription?.subscribedAt) { |
|
|
<a |
|
|
<a |
|
|
class="mx-1" |
|
|
class="mx-1" |
|
|
mat-stroked-button |
|
|
mat-stroked-button |
|
|
|
|
|
@ -151,6 +151,16 @@ export class UserService extends ObservableStore<UserStoreState> { |
|
|
user.settings.retirementDate = parseISO(user.settings.retirementDate); |
|
|
user.settings.retirementDate = parseISO(user.settings.retirementDate); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (user.subscription?.expiresAt) { |
|
|
|
|
|
user.subscription.expiresAt = parseISO(user.subscription.expiresAt); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (user.subscription?.subscribedAt) { |
|
|
|
|
|
user.subscription.subscribedAt = parseISO( |
|
|
|
|
|
user.subscription.subscribedAt |
|
|
|
|
|
); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
this.setState({ user }, UserStoreActions.GetUser); |
|
|
this.setState({ user }, UserStoreActions.GetUser); |
|
|
|
|
|
|
|
|
if ( |
|
|
if ( |
|
|
|
|
|
@ -27,6 +27,7 @@ export interface User { |
|
|
subscription: { |
|
|
subscription: { |
|
|
expiresAt?: Date; |
|
|
expiresAt?: Date; |
|
|
offer: SubscriptionOffer; |
|
|
offer: SubscriptionOffer; |
|
|
|
|
|
subscribedAt?: Date; |
|
|
type: SubscriptionType; |
|
|
type: SubscriptionType; |
|
|
}; |
|
|
}; |
|
|
tags: (Tag & { isUsed: boolean })[]; |
|
|
tags: (Tag & { isUsed: boolean })[]; |
|
|
|