Skip to content

Commit

Permalink
move experimental features call into component
Browse files Browse the repository at this point in the history
  • Loading branch information
hop-dev committed Oct 24, 2023
1 parent 922a92b commit c0db7e1
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -53,9 +53,6 @@ import { YamlCodeEditorWithPlaceholder } from './yaml_code_editor_with_placehold
import { useOutputForm } from './use_output_form';
import { EncryptionKeyRequiredCallout } from './encryption_key_required_callout';
import { AdvancedOptionsSection } from './advanced_options_section';

const { outputSecretsStorage: outputSecretsStorageEnabled } = ExperimentalFeaturesService.get();

export interface EditOutputFlyoutProps {
output?: Output;
onClose: () => void;
Expand All @@ -72,7 +69,8 @@ export const EditOutputFlyout: React.FunctionComponent<EditOutputFlyoutProps> =
const inputs = form.inputs;
const { docLinks } = useStartServices();
const { euiTheme } = useEuiTheme();
const [useSecretsStorage, setUseSecretsStorage] = React.useState(outputSecretsStorageEnabled);
const { outputSecretsStorage: isOutputSecretsStorageEnabled } = ExperimentalFeaturesService.get();
const [useSecretsStorage, setUseSecretsStorage] = React.useState(isOutputSecretsStorageEnabled);

const onUsePlainText = () => {
setUseSecretsStorage(false);
Expand Down

0 comments on commit c0db7e1

Please sign in to comment.