Skip to content

Commit

Permalink
remove some comments, clean up text content
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Jul 7, 2020
1 parent d0e7d98 commit 373dba7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ export const StatusMessage: React.FC<StatusMessageProps> = ({
<span>
<FormattedMessage
id="indexPatternManagement.createIndexPattern.step.status.matchAnyLabel.matchAnyDetail"
defaultMessage="Your index pattern can match any of your {sourceCount} sources below."
defaultMessage="Your index pattern can match {sourceCount, plural,
one {your # source}
other {any of your # sources}
}."
values={{ sourceCount: allIndicesLength }}
/>
</span>
Expand Down Expand Up @@ -107,14 +110,20 @@ export const StatusMessage: React.FC<StatusMessageProps> = ({
<FormattedMessage
id="indexPatternManagement.createIndexPattern.step.status.partialMatchLabel.partialMatchDetail"
defaultMessage="Your index pattern doesn't match any indices, but you have {strongIndices} which
{matchedIndicesLength, plural, one {looks} other {look}} similar."
{matchedIndicesLength, plural,
one {looks}
other {look}
} similar."
values={{
matchedIndicesLength: partialMatchedIndices.length,
strongIndices: (
<strong>
<FormattedMessage
id="indexPatternManagement.createIndexPattern.step.status.partialMatchLabel.strongIndicesLabel"
defaultMessage="{matchedIndicesLength, plural, one {# index} other {# indices}}"
defaultMessage="{matchedIndicesLength, plural,
one {index}
other {# indices}
}"
values={{ matchedIndicesLength: partialMatchedIndices.length }}
/>
</strong>
Expand All @@ -131,13 +140,19 @@ export const StatusMessage: React.FC<StatusMessageProps> = ({
<FormattedMessage
id="indexPatternManagement.createIndexPattern.step.status.notMatchLabel.notMatchDetail"
defaultMessage="The index pattern you've entered doesn't match any indices.
You can match {indicesLength, plural, one {your} other {any of your}} {strongIndices}, below."
You can match {indicesLength, plural,
one {your}
other {any of your}
} {strongIndices}, below."
values={{
strongIndices: (
<strong>
<FormattedMessage
id="indexPatternManagement.createIndexPattern.step.status.notMatchLabel.allIndicesLabel"
defaultMessage="{indicesLength, plural, one {# index} other {# indices}}"
defaultMessage="{indicesLength, plural,
one {# index}
other {# indices}
}"
values={{ indicesLength: allIndicesLength }}
/>
</strong>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,11 @@ export class CreateIndexPatternWizard extends Component<
<StepIndexPattern
allIndices={allIndices}
initialQuery={indexPattern || initialQuery}
// isIncludingSystemIndices={isIncludingSystemIndices}
indexPatternCreationType={this.state.indexPatternCreationType}
goToNextStep={this.goToTimeFieldStep}
showSystemIndices={
this.state.indexPatternCreationType.getShowSystemIndices() && this.state.step === 1
}
// onChangeIncludingSystemIndices={this.onChangeIncludingSystemIndices}
/>
</EuiPageContent>
);
Expand Down

0 comments on commit 373dba7

Please sign in to comment.