Skip to content

Commit

Permalink
change feature flag name and disable it by default
Browse files Browse the repository at this point in the history
  • Loading branch information
nkhristinin committed Apr 12, 2024
1 parent 5da233d commit 47eec14
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export const allowedExperimentalValues = Object.freeze({
/**
* Enables the new modal for the value list items
*/
valueListItemsModal: true,
valueListItemsModalEnabled: false,
});

type ExperimentalConfigKeys = Array<keyof ExperimentalFeatures>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const ShowValueListModal = ({
}) => {
const [showModal, setShowModal] = useState(false);
const { canWriteIndex, canReadIndex, loading } = useListsPrivileges();
const isValueItemsListModalEnabled = useIsExperimentalFeatureEnabled('valueListItemsModal');
const isValueItemsListModalEnabled = useIsExperimentalFeatureEnabled('valueListItemsModalEnabled');

const onCloseModal = useCallback(() => setShowModal(false), []);
const onShowModal = useCallback(() => setShowModal(true), []);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ describe(
env: {
ftrConfig: {
kbnServerArgs: [
`--xpack.securitySolution.enableExperimental=${JSON.stringify(['valueListItemsModal'])}`,
`--xpack.securitySolution.enableExperimental=${JSON.stringify([
'valueListItemsModalEnabled',
])}`,
],
},
},
Expand Down

0 comments on commit 47eec14

Please sign in to comment.