Skip to content

Commit

Permalink
update close/delete system index modals (#45037)
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth authored Sep 10, 2019
1 parent 777a0f2 commit 91e37f6
Showing 1 changed file with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { FormattedMessage } from '@kbn/i18n/react';
import { i18n } from '@kbn/i18n';
import { all } from 'lodash';
import {
EuiBadge,
EuiButton,
EuiCallOut,
EuiContextMenu,
Expand Down Expand Up @@ -431,10 +432,12 @@ export class IndexActionsContextMenu extends Component {
{isSystemIndexByName[indexName] ? (
<Fragment>
{' '}
<FormattedMessage
id="xpack.idxMgmt.indexActionsMenu.deleteIndex.systemIndexLabel"
defaultMessage="(System index)"
/>
<EuiBadge iconType="alert" color="hollow">
<FormattedMessage
id="xpack.idxMgmt.indexActionsMenu.deleteIndex.systemIndexLabel"
defaultMessage="System index"
/>
</EuiBadge>
</Fragment>
) : ''}
</li>
Expand All @@ -457,7 +460,7 @@ export class IndexActionsContextMenu extends Component {
<FormattedMessage
id="xpack.idxMgmt.indexActionsMenu.deleteIndex.proceedWithCautionCallOutDescription"
defaultMessage="System indices are critical for internal operations.
Deleting an index cannot be undone. Make sure you have appropriate backups."
If you delete a system index, you can't recover it. Make sure you have appropriate backups."
/>
</p>
<EuiCheckbox
Expand Down Expand Up @@ -567,10 +570,12 @@ export class IndexActionsContextMenu extends Component {
{isSystemIndexByName[indexName] ? (
<Fragment>
{' '}
<FormattedMessage
id="xpack.idxMgmt.indexActionsMenu.closeIndex.systemIndexLabel"
defaultMessage="(System index)"
/>
<EuiBadge iconType="alert" color="hollow">
<FormattedMessage
id="xpack.idxMgmt.indexActionsMenu.closeIndex.systemIndexLabel"
defaultMessage="System index"
/>
</EuiBadge>
</Fragment>
) : ''}
</li>
Expand Down

0 comments on commit 91e37f6

Please sign in to comment.