Skip to content

Commit 750992e

Browse files
committed
fix type issue
1 parent 6109d3a commit 750992e

File tree

1 file changed

+4
-4
lines changed
  • x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/phases/shared/data_tier_allocation_field/components

1 file changed

+4
-4
lines changed

x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/phases/shared/data_tier_allocation_field/components/default_allocation_notice.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import { i18n } from '@kbn/i18n';
88
import React, { FunctionComponent } from 'react';
99
import { EuiCallOut } from '@elastic/eui';
1010

11-
import { PhaseWithAllocation, NodeDataRole } from '../../../../../../../../../common/types';
11+
import { PhaseWithAllocation, DataTierRole } from '../../../../../../../../../common/types';
1212

1313
import { AllocationNodeRole } from '../../../../../../../lib';
1414

15-
const i18nTextsNodeRoleToDataTier: Record<NodeDataRole, string> = {
15+
const i18nTextsNodeRoleToDataTier: Record<DataTierRole, string> = {
1616
data_hot: i18n.translate('xpack.indexLifecycleMgmt.editPolicy.dataTierHotLabel', {
1717
defaultMessage: 'hot',
1818
}),
@@ -31,7 +31,7 @@ const i18nTexts = {
3131
'xpack.indexLifecycleMgmt.warmPhase.dataTier.defaultAllocationNotice.warm.title',
3232
{ defaultMessage: 'No nodes assigned to the warm tier' }
3333
),
34-
body: (nodeRole: NodeDataRole) =>
34+
body: (nodeRole: DataTierRole) =>
3535
i18n.translate('xpack.indexLifecycleMgmt.warmPhase.dataTier.defaultAllocationNotice.warm', {
3636
defaultMessage:
3737
'This policy will move data in the warm phase to {tier} tier nodes instead.',
@@ -43,7 +43,7 @@ const i18nTexts = {
4343
'xpack.indexLifecycleMgmt.warmPhase.dataTier.defaultAllocationNotice.cold.title',
4444
{ defaultMessage: 'No nodes assigned to the cold tier' }
4545
),
46-
body: (nodeRole: NodeDataRole) =>
46+
body: (nodeRole: DataTierRole) =>
4747
i18n.translate('xpack.indexLifecycleMgmt.warmPhase.dataTier.defaultAllocationNotice.cold', {
4848
defaultMessage:
4949
'This policy will move data in the cold phase to {tier} tier nodes instead.',

0 commit comments

Comments
 (0)