Skip to content

Commit

Permalink
[Uptime] Feature/expandable row in details ping list (#51890) (#53055)
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 15, 2019
1 parent 29921e1 commit e0f682a
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 @@ -191,7 +191,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 @@ -201,7 +201,7 @@ export const PingListComponent = ({

columns.push({
align: 'right',
width: '40px',
width: '24px',
isExpander: true,
render: (item: Ping) => (
<EuiButtonIcon
Expand Down Expand Up @@ -303,6 +303,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 e0f682a

Please sign in to comment.