mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 00:02:15 +01:00
respect has_subscription property in frontend for displaying the member add popup
This commit is contained in:
@@ -9,6 +9,11 @@ export function isBillingActivated() {
|
||||
}
|
||||
|
||||
export function hasActiveSubscription() {
|
||||
// TODO: Replace with server side check
|
||||
return true;
|
||||
const page = usePage<{
|
||||
billing: {
|
||||
has_subscription: boolean;
|
||||
};
|
||||
}>();
|
||||
|
||||
return page.props.billing.has_subscription;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user