@@ -40,7 +40,7 @@ import _ from "lodash";
40
40
import { ContentPanel , ContentPanelActions } from "../../../../components/ContentPanel" ;
41
41
import ManagedIndexControls from "../../components/ManagedIndexControls" ;
42
42
import ManagedIndexEmptyPrompt from "../../components/ManagedIndexEmptyPrompt" ;
43
- import { ACTIONS , DEFAULT_PAGE_SIZE_OPTIONS , DEFAULT_QUERY_PARAMS } from "../../utils/constants" ;
43
+ import { DEFAULT_PAGE_SIZE_OPTIONS , DEFAULT_QUERY_PARAMS } from "../../utils/constants" ;
44
44
import { BREADCRUMBS , DEFAULT_EMPTY_DATA , PLUGIN_NAME , ROUTES } from "../../../../utils/constants" ;
45
45
import InfoModal from "../../components/InfoModal" ;
46
46
import PolicyModal from "../../../../components/PolicyModal" ;
@@ -126,7 +126,9 @@ export default class ManagedIndices extends Component<ManagedIndicesProps, Manag
126
126
truncateText : false ,
127
127
width : "150px" ,
128
128
// @ts -ignore
129
- render : ( action : string ) => ACTIONS [ action ] || DEFAULT_EMPTY_DATA ,
129
+ render : ( action : string ) => (
130
+ < span style = { { textTransform : "capitalize" } } > { ( action || DEFAULT_EMPTY_DATA ) . split ( "_" ) . join ( " " ) } </ span >
131
+ ) ,
130
132
} ,
131
133
{
132
134
field : "managedIndexMetaData.info" ,
@@ -143,7 +145,7 @@ export default class ManagedIndices extends Component<ManagedIndicesProps, Manag
143
145
} ,
144
146
{
145
147
field : "index" , // we don't care about the field as we're using the whole item in render
146
- name : "Status" ,
148
+ name : "Job Status" ,
147
149
sortable : false ,
148
150
truncateText : false ,
149
151
width : "150px" ,
@@ -238,7 +240,7 @@ export default class ManagedIndices extends Component<ManagedIndicesProps, Manag
238
240
if ( failures ) {
239
241
toastNotifications . addDanger (
240
242
`Failed to remove policy from ${ failedIndices
241
- . map ( failedIndex => `[${ failedIndex . indexName } , ${ failedIndex . reason } ]` )
243
+ . map ( ( failedIndex ) => `[${ failedIndex . indexName } , ${ failedIndex . reason } ]` )
242
244
. join ( ", " ) } `
243
245
) ;
244
246
}
@@ -345,7 +347,7 @@ export default class ManagedIndices extends Component<ManagedIndicesProps, Manag
345
347
selectedItems . length === 1 ? `policy from ${ selectedItems [ 0 ] . index } ` : `policies from ${ selectedItems . length } indices`
346
348
} permanently? This action cannot be undone.`,
347
349
actionMessage : "Remove" ,
348
- onAction : ( ) => this . onClickRemovePolicy ( selectedItems . map ( item => item . index ) ) ,
350
+ onAction : ( ) => this . onClickRemovePolicy ( selectedItems . map ( ( item ) => item . index ) ) ,
349
351
} ) ,
350
352
} ,
351
353
} ,
0 commit comments