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:
parent
2748ced8e2
commit
6b5c29a6e6
@ -91,6 +91,7 @@ export type UiFlags = {
|
|||||||
adminNavUI?: boolean;
|
adminNavUI?: boolean;
|
||||||
tagTypeColor?: boolean;
|
tagTypeColor?: boolean;
|
||||||
globalChangeRequestConfig?: boolean;
|
globalChangeRequestConfig?: boolean;
|
||||||
|
addEditStrategy?: boolean;
|
||||||
newStrategyDropdown?: boolean;
|
newStrategyDropdown?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -65,6 +65,7 @@ export type IFlagKey =
|
|||||||
| 'adminNavUI'
|
| 'adminNavUI'
|
||||||
| 'tagTypeColor'
|
| 'tagTypeColor'
|
||||||
| 'globalChangeRequestConfig'
|
| 'globalChangeRequestConfig'
|
||||||
|
| 'addEditStrategy'
|
||||||
| 'newStrategyDropdown';
|
| 'newStrategyDropdown';
|
||||||
|
|
||||||
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
|
||||||
@ -310,6 +311,10 @@ const flags: IFlags = {
|
|||||||
process.env.UNLEASH_EXPERIMENTAL_GLOBAL_CHANGE_REQUEST_CONFIG,
|
process.env.UNLEASH_EXPERIMENTAL_GLOBAL_CHANGE_REQUEST_CONFIG,
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
|
addEditStrategy: parseEnvVarBoolean(
|
||||||
|
process.env.UNLEASH_EXPERIMENTAL_ADD_EDIT_STRATEGY,
|
||||||
|
false,
|
||||||
|
),
|
||||||
newStrategyDropdown: parseEnvVarBoolean(
|
newStrategyDropdown: parseEnvVarBoolean(
|
||||||
process.env.UNLEASH_EXPERIMENTAL_NEW_STRATEGY_DROPDOWN,
|
process.env.UNLEASH_EXPERIMENTAL_NEW_STRATEGY_DROPDOWN,
|
||||||
false,
|
false,
|
||||||
|
@ -59,6 +59,7 @@ process.nextTick(async () => {
|
|||||||
adminNavUI: true,
|
adminNavUI: true,
|
||||||
tagTypeColor: true,
|
tagTypeColor: true,
|
||||||
newStrategyDropdown: true,
|
newStrategyDropdown: true,
|
||||||
|
addEditStrategy: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
authentication: {
|
authentication: {
|
||||||
|
Loading…
Reference in New Issue
Block a user