diff --git a/x-pack/legacy/plugins/index_management/public/app/sections/home/index_list/detail_panel/edit_settings_json/edit_settings_json.js b/x-pack/legacy/plugins/index_management/public/app/sections/home/index_list/detail_panel/edit_settings_json/edit_settings_json.js index f9e398e384a83..4f2d0b3de96b7 100644 --- a/x-pack/legacy/plugins/index_management/public/app/sections/home/index_list/detail_panel/edit_settings_json/edit_settings_json.js +++ b/x-pack/legacy/plugins/index_management/public/app/sections/home/index_list/detail_panel/edit_settings_json/edit_settings_json.js @@ -67,7 +67,8 @@ export class EditSettingsJson extends React.PureComponent { const editor = (this.editor = createAceEditor(this.aceDiv, prettyJson, false, settingsKeys)); const session = editor.getSession(); session.on('changeAnnotation', () => { - this.setState({ valid: session.getAnnotations().length === 0 }); + const isEmptyString = session.getValue() === ''; + this.setState({ valid: !isEmptyString && session.getAnnotations().length === 0 }); }); } } diff --git a/x-pack/legacy/plugins/index_management/public/app/sections/home/index_list/index_actions_context_menu/index_actions_context_menu.js b/x-pack/legacy/plugins/index_management/public/app/sections/home/index_list/index_actions_context_menu/index_actions_context_menu.js index 938e5961a8db4..ea1fcdc51fc4d 100644 --- a/x-pack/legacy/plugins/index_management/public/app/sections/home/index_list/index_actions_context_menu/index_actions_context_menu.js +++ b/x-pack/legacy/plugins/index_management/public/app/sections/home/index_list/index_actions_context_menu/index_actions_context_menu.js @@ -13,7 +13,7 @@ import { EuiButton, EuiCallOut, EuiContextMenu, - EuiFieldText, + EuiFieldNumber, EuiForm, EuiFormRow, EuiPopover, @@ -368,7 +368,7 @@ export class IndexActionsContextMenu extends Component { - { this.setState({ forcemergeSegments: event.target.value }); }} + min={1} name="maxNumberSegments" />