mirror of https://github.com/apache/druid.git
Web console: fix service view actions when grouping (#10898)
* fix service view actions when grouping * fix test
This commit is contained in:
parent
58294329b7
commit
c0fb326788
|
@ -196,6 +196,7 @@ exports[`services view action services view 1`] = `
|
|||
"width": 400,
|
||||
},
|
||||
Object {
|
||||
"Aggregated": [Function],
|
||||
"Cell": [Function],
|
||||
"Header": "Actions",
|
||||
"accessor": [Function],
|
||||
|
|
|
@ -559,12 +559,14 @@ ORDER BY "rank" DESC, "service" DESC`;
|
|||
width: ACTION_COLUMN_WIDTH,
|
||||
accessor: row => row.worker,
|
||||
filterable: false,
|
||||
Cell: ({ value }) => {
|
||||
Cell: ({ value, aggregated }) => {
|
||||
if (aggregated) return '';
|
||||
if (!value) return null;
|
||||
const disabled = value.version === '';
|
||||
const workerActions = this.getWorkerActions(value.host, disabled);
|
||||
return <ActionCell actions={workerActions} />;
|
||||
},
|
||||
Aggregated: () => '',
|
||||
},
|
||||
]}
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue