Skip to content

Commit

Permalink
[Uptime] Feature/expandable row in details ping list (#51890)
Browse files Browse the repository at this point in the history
* update columns

* update expand row in ping list
  • Loading branch information
shahzad31 authored Dec 10, 2019
1 parent c4e4da3 commit f6c44df
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export const MonitorListComponent = (props: Props) => {
field: 'monitor_id',
name: '',
sortable: true,
width: '40px',
width: '24px',
isExpander: true,
render: (id: string) => {
return (
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export const PingListComponent = ({
if (hasStatus) {
columns.push({
field: 'http.response.status_code',
align: 'right',
align: 'center',
name: i18n.translate('xpack.uptime.pingList.responseCodeColumnLabel', {
defaultMessage: 'Response code',
}),
Expand All @@ -200,7 +200,7 @@ export const PingListComponent = ({

columns.push({
align: 'right',
width: '40px',
width: '24px',
isExpander: true,
render: (item: Ping) => (
<EuiButtonIcon
Expand Down Expand Up @@ -300,6 +300,8 @@ export const PingListComponent = ({
<EuiBasicTable
loading={loading}
columns={columns}
isExpandable={true}
hasActions={true}
items={pings}
itemId="id"
itemIdToExpandedRowMap={itemIdToExpandedRowMap}
Expand Down

0 comments on commit f6c44df

Please sign in to comment.