New: Host column in history and more info

This commit is contained in:
Bogdan
2024-05-02 22:35:20 +03:00
parent 440618f2b6
commit cb673ddc42
3 changed files with 31 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ function HistoryDetails(props) {
limit, limit,
offset, offset,
source, source,
host,
url url
} = data; } = data;
@@ -86,6 +87,15 @@ function HistoryDetails(props) {
null null
} }
{
data ?
<DescriptionListItem
title={translate('Host')}
data={host}
/> :
null
}
{ {
data ? data ?
<DescriptionListItem <DescriptionListItem

View File

@@ -331,6 +331,21 @@ class HistoryRow extends Component {
); );
} }
if (name === 'host') {
return (
<TableRowCell
key={name}
className={styles.indexer}
>
{
data.host ?
data.host :
null
}
</TableRowCell>
);
}
if (name === 'elapsedTime') { if (name === 'elapsedTime') {
return ( return (
<TableRowCell <TableRowCell

View File

@@ -82,6 +82,12 @@ export const defaultState = {
isSortable: false, isSortable: false,
isVisible: false isVisible: false
}, },
{
name: 'host',
label: () => translate('Host'),
isSortable: false,
isVisible: false
},
{ {
name: 'elapsedTime', name: 'elapsedTime',
label: () => translate('ElapsedTime'), label: () => translate('ElapsedTime'),