diff --git a/x-pack/plugins/beats_management/common/constants/index.ts b/x-pack/plugins/beats_management/common/constants/index.ts index 51ee00558f7ec..50851dcef947e 100644 --- a/x-pack/plugins/beats_management/common/constants/index.ts +++ b/x-pack/plugins/beats_management/common/constants/index.ts @@ -8,4 +8,4 @@ export { PLUGIN } from './plugin'; export { INDEX_NAMES } from './index_names'; export { UNIQUENESS_ENFORCING_TYPES, ConfigurationBlockTypes } from './configuration_blocks'; export const BASE_PATH = '/management/beats_management/'; -export { TABLE_CONFIG } from './beats_table'; +export { TABLE_CONFIG } from './table'; diff --git a/x-pack/plugins/beats_management/common/constants/beats_table.ts b/x-pack/plugins/beats_management/common/constants/table.ts similarity index 74% rename from x-pack/plugins/beats_management/common/constants/beats_table.ts rename to x-pack/plugins/beats_management/common/constants/table.ts index 1de2638df95c2..801a60082d1b8 100644 --- a/x-pack/plugins/beats_management/common/constants/beats_table.ts +++ b/x-pack/plugins/beats_management/common/constants/table.ts @@ -7,9 +7,4 @@ export const TABLE_CONFIG = { INITIAL_ROW_SIZE: 5, PAGE_SIZE_OPTIONS: [3, 5, 10, 20], - ACTIONS: { - BULK_ASSIGN_TAG: 'BULK_ASSIGN_TAG', - BULK_DELETE: 'BULK_DELETE', - BULK_EDIT: 'BULK_EDIT', - }, }; diff --git a/x-pack/plugins/beats_management/public/components/table/controls.tsx b/x-pack/plugins/beats_management/public/components/table/controls.tsx index db8528f27ef63..ab5fb655fe361 100644 --- a/x-pack/plugins/beats_management/public/components/table/controls.tsx +++ b/x-pack/plugins/beats_management/public/components/table/controls.tsx @@ -50,11 +50,8 @@ export class ControlBar extends React.Component ( - {this.renderActionButton()} {this.props.selectionCount} selected - - Disenroll Selected - + {this.renderActionButton()} ( - - {this.renderActionButton()} - - this.props.actionHandler('search', query)} - /> - - + this.props.actionHandler('search', query)} + /> ); private renderActionButton = () => { diff --git a/x-pack/plugins/beats_management/public/components/table/table_type_configs.tsx b/x-pack/plugins/beats_management/public/components/table/table_type_configs.tsx index 484f067b2cb76..fb4529da171cb 100644 --- a/x-pack/plugins/beats_management/public/components/table/table_type_configs.tsx +++ b/x-pack/plugins/beats_management/public/components/table/table_type_configs.tsx @@ -90,14 +90,9 @@ export const BeatsTableType: TableType = { controlDefinitions: (data: any) => ({ actions: [ { - action: 'edit', - name: 'Bulk Edit', - icon: , - }, - { + name: 'Disenroll Selected', action: 'delete', - name: 'Bulk Delete', - icon: , + danger: true, }, ], filters: [