mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-13 20:16:00 +08:00
fix: disable sidenav items for cloud users whose license has expired (#7524)
This commit is contained in:
parent
6a143efd2c
commit
93dc585145
@ -21,6 +21,7 @@ import { useQuery } from 'react-query';
|
|||||||
import { FeatureFlagProps as FeatureFlags } from 'types/api/features/getFeaturesFlags';
|
import { FeatureFlagProps as FeatureFlags } from 'types/api/features/getFeaturesFlags';
|
||||||
import { PayloadProps as LicensesResModel } from 'types/api/licenses/getAll';
|
import { PayloadProps as LicensesResModel } from 'types/api/licenses/getAll';
|
||||||
import {
|
import {
|
||||||
|
LicensePlatform,
|
||||||
LicenseState,
|
LicenseState,
|
||||||
LicenseV3ResModel,
|
LicenseV3ResModel,
|
||||||
TrialInfo,
|
TrialInfo,
|
||||||
@ -145,7 +146,8 @@ export function AppProvider({ children }: PropsWithChildren): JSX.Element {
|
|||||||
).unix(),
|
).unix(),
|
||||||
onTrial: isOnTrial,
|
onTrial: isOnTrial,
|
||||||
workSpaceBlock:
|
workSpaceBlock:
|
||||||
activeLicenseV3Data.payload.state === LicenseState.EVALUATION_EXPIRED,
|
activeLicenseV3Data.payload.state === LicenseState.EVALUATION_EXPIRED &&
|
||||||
|
activeLicenseV3Data.payload.platform === LicensePlatform.CLOUD,
|
||||||
trialConvertedToSubscription:
|
trialConvertedToSubscription:
|
||||||
activeLicenseV3Data.payload.state !== LicenseState.ISSUED &&
|
activeLicenseV3Data.payload.state !== LicenseState.ISSUED &&
|
||||||
activeLicenseV3Data.payload.state !== LicenseState.EVALUATING &&
|
activeLicenseV3Data.payload.state !== LicenseState.EVALUATING &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user