mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-11 00:08:30 +01:00
fix: add instanceName to license display (#6065)
## About the changes - Shows the instanceName from the license - add new feature flag `enableLicenseChecker` used to enforce a valid license.
This commit is contained in:
parent
3ff19f3eb6
commit
38df2e1831
@ -80,19 +80,27 @@ export const License = () => {
|
|||||||
Customer
|
Customer
|
||||||
</StyledPropertyName>
|
</StyledPropertyName>
|
||||||
<StyledPropertyDetails>
|
<StyledPropertyDetails>
|
||||||
{license?.customer}
|
{license.customer}
|
||||||
|
</StyledPropertyDetails>
|
||||||
|
</StyledDataCollectionPropertyRow>
|
||||||
|
<StyledDataCollectionPropertyRow>
|
||||||
|
<StyledPropertyName>
|
||||||
|
Instance Name
|
||||||
|
</StyledPropertyName>
|
||||||
|
<StyledPropertyDetails>
|
||||||
|
{license.instanceName}
|
||||||
</StyledPropertyDetails>
|
</StyledPropertyDetails>
|
||||||
</StyledDataCollectionPropertyRow>
|
</StyledDataCollectionPropertyRow>
|
||||||
<StyledDataCollectionPropertyRow>
|
<StyledDataCollectionPropertyRow>
|
||||||
<StyledPropertyName>Plan</StyledPropertyName>
|
<StyledPropertyName>Plan</StyledPropertyName>
|
||||||
<StyledPropertyDetails>
|
<StyledPropertyDetails>
|
||||||
{license?.plan}
|
{license.plan}
|
||||||
</StyledPropertyDetails>
|
</StyledPropertyDetails>
|
||||||
</StyledDataCollectionPropertyRow>
|
</StyledDataCollectionPropertyRow>
|
||||||
<StyledDataCollectionPropertyRow>
|
<StyledDataCollectionPropertyRow>
|
||||||
<StyledPropertyName>Seats</StyledPropertyName>
|
<StyledPropertyName>Seats</StyledPropertyName>
|
||||||
<StyledPropertyDetails>
|
<StyledPropertyDetails>
|
||||||
{license?.seats}
|
{license.seats}
|
||||||
</StyledPropertyDetails>
|
</StyledPropertyDetails>
|
||||||
</StyledDataCollectionPropertyRow>
|
</StyledDataCollectionPropertyRow>
|
||||||
<StyledDataCollectionPropertyRow>
|
<StyledDataCollectionPropertyRow>
|
||||||
|
@ -21,6 +21,7 @@ export interface License {
|
|||||||
license?: {
|
license?: {
|
||||||
token: string;
|
token: string;
|
||||||
customer: string;
|
customer: string;
|
||||||
|
instanceName: string;
|
||||||
plan: string;
|
plan: string;
|
||||||
seats: number;
|
seats: number;
|
||||||
expireAt: Date;
|
expireAt: Date;
|
||||||
|
@ -90,6 +90,7 @@ exports[`should create default config 1`] = `
|
|||||||
"embedProxy": true,
|
"embedProxy": true,
|
||||||
"embedProxyFrontend": true,
|
"embedProxyFrontend": true,
|
||||||
"enableLicense": false,
|
"enableLicense": false,
|
||||||
|
"enableLicenseChecker": false,
|
||||||
"encryptEmails": false,
|
"encryptEmails": false,
|
||||||
"executiveDashboard": false,
|
"executiveDashboard": false,
|
||||||
"extendedUsageMetrics": false,
|
"extendedUsageMetrics": false,
|
||||||
|
@ -7,6 +7,7 @@ export type IFlagKey =
|
|||||||
| 'anonymiseEventLog'
|
| 'anonymiseEventLog'
|
||||||
| 'encryptEmails'
|
| 'encryptEmails'
|
||||||
| 'enableLicense'
|
| 'enableLicense'
|
||||||
|
| 'enableLicenseChecker'
|
||||||
| 'embedProxy'
|
| 'embedProxy'
|
||||||
| 'embedProxyFrontend'
|
| 'embedProxyFrontend'
|
||||||
| 'responseTimeWithAppNameKillSwitch'
|
| 'responseTimeWithAppNameKillSwitch'
|
||||||
@ -55,6 +56,7 @@ export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
|||||||
const flags: IFlags = {
|
const flags: IFlags = {
|
||||||
anonymiseEventLog: false,
|
anonymiseEventLog: false,
|
||||||
enableLicense: false,
|
enableLicense: false,
|
||||||
|
enableLicenseChecker: false,
|
||||||
embedProxy: parseEnvVarBoolean(
|
embedProxy: parseEnvVarBoolean(
|
||||||
process.env.UNLEASH_EXPERIMENTAL_EMBED_PROXY,
|
process.env.UNLEASH_EXPERIMENTAL_EMBED_PROXY,
|
||||||
true,
|
true,
|
||||||
|
Loading…
Reference in New Issue
Block a user