mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-09 00:18:00 +01:00
[Gitar] Cleaning up stale flag: licensedUsers with value true (#9061)
[![Gitar](https://raw.githubusercontent.com/gitarcode/.github/main/assets/gitar-banner.svg)](https://gitar.ai) This automated PR permanently enables the `licensedUsers` feature flag. --- This automated PR was generated by [Gitar](https://gitar.ai). View [docs](https://gitar.ai/docs). --------- Co-authored-by: Gitar <noreply@gitar.ai>
This commit is contained in:
parent
c56200e030
commit
1c0431365e
@ -1,6 +1,5 @@
|
|||||||
import { Box, styled } from '@mui/material';
|
import { Box, styled } from '@mui/material';
|
||||||
import { InviteLinkBar } from '../InviteLinkBar/InviteLinkBar';
|
import { InviteLinkBar } from '../InviteLinkBar/InviteLinkBar';
|
||||||
import { useUiFlag } from 'hooks/useUiFlag';
|
|
||||||
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
||||||
import { LicensedUsersBox } from './LicensedUsersBox';
|
import { LicensedUsersBox } from './LicensedUsersBox';
|
||||||
|
|
||||||
@ -24,9 +23,8 @@ const StyledElement = styled(Box)(({ theme }) => ({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
export const UsersHeader = () => {
|
export const UsersHeader = () => {
|
||||||
const licensedUsers = useUiFlag('licensedUsers');
|
|
||||||
const { isOss } = useUiConfig();
|
const { isOss } = useUiConfig();
|
||||||
const licensedUsersEnabled = licensedUsers && !isOss();
|
const licensedUsersEnabled = !isOss();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<StyledContainer>
|
<StyledContainer>
|
||||||
|
@ -90,7 +90,6 @@ export type UiFlags = {
|
|||||||
productivityReportEmail?: boolean;
|
productivityReportEmail?: boolean;
|
||||||
showUserDeviceCount?: boolean;
|
showUserDeviceCount?: boolean;
|
||||||
flagOverviewRedesign?: boolean;
|
flagOverviewRedesign?: boolean;
|
||||||
licensedUsers?: boolean;
|
|
||||||
granularAdminPermissions?: boolean;
|
granularAdminPermissions?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -57,7 +57,6 @@ export type IFlagKey =
|
|||||||
| 'showUserDeviceCount'
|
| 'showUserDeviceCount'
|
||||||
| 'deleteStaleUserSessions'
|
| 'deleteStaleUserSessions'
|
||||||
| 'memorizeStats'
|
| 'memorizeStats'
|
||||||
| 'licensedUsers'
|
|
||||||
| 'granularAdminPermissions'
|
| 'granularAdminPermissions'
|
||||||
| 'streaming'
|
| 'streaming'
|
||||||
| 'etagVariant'
|
| 'etagVariant'
|
||||||
@ -270,10 +269,6 @@ const flags: IFlags = {
|
|||||||
process.env.UNLEASH_EXPERIMENTAL_FLAG_OVERVIEW_REDESIGN,
|
process.env.UNLEASH_EXPERIMENTAL_FLAG_OVERVIEW_REDESIGN,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
licensedUsers: parseEnvVarBoolean(
|
|
||||||
process.env.UNLEASH_EXPERIMENTAL_FLAG_LICENSED_USERS,
|
|
||||||
false,
|
|
||||||
),
|
|
||||||
granularAdminPermissions: parseEnvVarBoolean(
|
granularAdminPermissions: parseEnvVarBoolean(
|
||||||
process.env.UNLEASH_EXPERIMENTAL_GRANULAR_ADMIN_PERMISSIONS,
|
process.env.UNLEASH_EXPERIMENTAL_GRANULAR_ADMIN_PERMISSIONS,
|
||||||
false,
|
false,
|
||||||
|
@ -54,7 +54,6 @@ process.nextTick(async () => {
|
|||||||
simplifyProjectOverview: true,
|
simplifyProjectOverview: true,
|
||||||
showUserDeviceCount: true,
|
showUserDeviceCount: true,
|
||||||
flagOverviewRedesign: false,
|
flagOverviewRedesign: false,
|
||||||
licensedUsers: true,
|
|
||||||
granularAdminPermissions: true,
|
granularAdminPermissions: true,
|
||||||
deltaApi: true,
|
deltaApi: true,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user