{i18n.translate('xpack.fileUpload.indexSettings.guidelines.cannotBe',
- { defaultMessage: 'Cannot be . or ..' })}
-
-
{i18n.translate('xpack.fileUpload.indexSettings.guidelines.length',
- { defaultMessage:
- 'Cannot be longer than 255 bytes (note it is bytes, \
- so multi-byte characters will count towards the 255 \
- limit faster)'
- })}
-
-
-
-
- )}
-
-
-
-
+ {indexDisabled ? null : (
+
+
+
+ {i18n.translate('xpack.fileUpload.indexSettings.guidelines.mustBeNewIndex', {
+ defaultMessage: 'Must be a new index',
+ })}
+
+ {i18n.translate('xpack.fileUpload.indexSettings.guidelines.cannotBe', {
+ defaultMessage: 'Cannot be . or ..',
+ })}
+
+
+ {i18n.translate('xpack.fileUpload.indexSettings.guidelines.length', {
+ defaultMessage:
+ 'Cannot be longer than 255 bytes (note it is bytes, \
+ so multi-byte characters will count towards the 255 \
+ limit faster)',
+ })}
+
+
+
+ )}
);
}
}
-
diff --git a/x-pack/legacy/plugins/file_upload/public/components/json_import_progress.js b/x-pack/legacy/plugins/file_upload/public/components/json_import_progress.js
index 46a4c01a31e81..8aa2ef757d488 100644
--- a/x-pack/legacy/plugins/file_upload/public/components/json_import_progress.js
+++ b/x-pack/legacy/plugins/file_upload/public/components/json_import_progress.js
@@ -4,18 +4,9 @@
* you may not use this file except in compliance with the Elastic License.
*/
-
import React, { Fragment, Component } from 'react';
import { i18n } from '@kbn/i18n';
-import {
- EuiCodeBlock,
- EuiSpacer,
- EuiFormRow,
- EuiText,
- EuiProgress,
- EuiFlexItem,
- EuiCallOut,
-} from '@elastic/eui';
+import { EuiCodeBlock, EuiSpacer, EuiText, EuiTitle, EuiProgress, EuiCallOut } from '@elastic/eui';
import { FormattedMessage } from '@kbn/i18n/react';
import chrome from 'ui/chrome';
@@ -70,101 +61,71 @@ export class JsonImportProgress extends Component {
return (
- {!complete ?
- : null}
-
- : null}
+
+