Skip to content

Commit f4ed8bc

Browse files
committed
Update action control position.
1 parent 9e2a38e commit f4ed8bc

4 files changed

Lines changed: 9 additions & 27 deletions

File tree

x-pack/plugins/beats_management/common/constants/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ export { PLUGIN } from './plugin';
88
export { INDEX_NAMES } from './index_names';
99
export { UNIQUENESS_ENFORCING_TYPES, ConfigurationBlockTypes } from './configuration_blocks';
1010
export const BASE_PATH = '/management/beats_management/';
11-
export { TABLE_CONFIG } from './beats_table';
11+
export { TABLE_CONFIG } from './table';

x-pack/plugins/beats_management/common/constants/beats_table.ts renamed to x-pack/plugins/beats_management/common/constants/table.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,4 @@
77
export const TABLE_CONFIG = {
88
INITIAL_ROW_SIZE: 5,
99
PAGE_SIZE_OPTIONS: [3, 5, 10, 20],
10-
ACTIONS: {
11-
BULK_ASSIGN_TAG: 'BULK_ASSIGN_TAG',
12-
BULK_DELETE: 'BULK_DELETE',
13-
BULK_EDIT: 'BULK_EDIT',
14-
},
1510
};

x-pack/plugins/beats_management/public/components/table/controls.tsx

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,8 @@ export class ControlBar extends React.Component<ControlBarProps, ControlBarState
5050

5151
private renderAssignmentOptions = () => (
5252
<EuiFlexGroup alignItems="center" justifyContent="spaceBetween">
53-
<EuiFlexItem grow={false}>{this.renderActionButton()}</EuiFlexItem>
5453
<EuiFlexItem>{this.props.selectionCount} selected</EuiFlexItem>
55-
<EuiFlexItem grow={false}>
56-
<EuiButton color="danger">Disenroll Selected</EuiButton>
57-
</EuiFlexItem>
54+
<EuiFlexItem grow={false}>{this.renderActionButton()}</EuiFlexItem>
5855
<EuiFlexItem grow={false}>
5956
<EuiPopover
6057
button={
@@ -92,16 +89,11 @@ export class ControlBar extends React.Component<ControlBarProps, ControlBarState
9289
);
9390

9491
private renderDefaultControls = () => (
95-
<EuiFlexGroup>
96-
<EuiFlexItem grow={false}>{this.renderActionButton()}</EuiFlexItem>
97-
<EuiFlexItem>
98-
<EuiSearchBar
99-
box={{ incremental: true }}
100-
filters={this.props.controlDefinitions.filters}
101-
onChange={(query: any) => this.props.actionHandler('search', query)}
102-
/>
103-
</EuiFlexItem>
104-
</EuiFlexGroup>
92+
<EuiSearchBar
93+
box={{ incremental: true }}
94+
filters={this.props.controlDefinitions.filters}
95+
onChange={(query: any) => this.props.actionHandler('search', query)}
96+
/>
10597
);
10698

10799
private renderActionButton = () => {

x-pack/plugins/beats_management/public/components/table/table_type_configs.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,9 @@ export const BeatsTableType: TableType = {
9090
controlDefinitions: (data: any) => ({
9191
actions: [
9292
{
93-
action: 'edit',
94-
name: 'Bulk Edit',
95-
icon: <EuiIcon type="indexEdit" size="m" />,
96-
},
97-
{
93+
name: 'Disenroll Selected',
9894
action: 'delete',
99-
name: 'Bulk Delete',
100-
icon: <EuiIcon type="indexClose" size="m" />,
95+
danger: true,
10196
},
10297
],
10398
filters: [

0 commit comments

Comments
 (0)