1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-27 01:19:00 +02:00

chore: Add flag for add/edit strategies (#9699)

Adds a flag for the edd/edit strategies updates.
This commit is contained in:
Thomas Heartman 2025-04-04 10:18:05 +02:00 committed by GitHub
parent 2748ced8e2
commit 6b5c29a6e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 0 deletions

View File

@ -91,6 +91,7 @@ export type UiFlags = {
adminNavUI?: boolean;
tagTypeColor?: boolean;
globalChangeRequestConfig?: boolean;
addEditStrategy?: boolean;
newStrategyDropdown?: boolean;
};

View File

@ -65,6 +65,7 @@ export type IFlagKey =
| 'adminNavUI'
| 'tagTypeColor'
| 'globalChangeRequestConfig'
| 'addEditStrategy'
| 'newStrategyDropdown';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -310,6 +311,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_GLOBAL_CHANGE_REQUEST_CONFIG,
false,
),
addEditStrategy: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_ADD_EDIT_STRATEGY,
false,
),
newStrategyDropdown: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_NEW_STRATEGY_DROPDOWN,
false,

View File

@ -59,6 +59,7 @@ process.nextTick(async () => {
adminNavUI: true,
tagTypeColor: true,
newStrategyDropdown: true,
addEditStrategy: true,
},
},
authentication: {