Skip to content

Commit

Permalink
New: Host column in history and more info
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed May 2, 2024
1 parent 440618f commit cb673dd
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
10 changes: 10 additions & 0 deletions frontend/src/History/Details/HistoryDetails.js
Expand Up @@ -21,6 +21,7 @@ function HistoryDetails(props) {
limit,
offset,
source,
host,
url
} = data;

Expand Down Expand Up @@ -86,6 +87,15 @@ function HistoryDetails(props) {
null
}

{
data ?
<DescriptionListItem
title={translate('Host')}
data={host}
/> :
null
}

{
data ?
<DescriptionListItem
Expand Down
15 changes: 15 additions & 0 deletions frontend/src/History/HistoryRow.js
Expand Up @@ -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') {
return (
<TableRowCell
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/Store/Actions/historyActions.js
Expand Up @@ -82,6 +82,12 @@ export const defaultState = {
isSortable: false,
isVisible: false
},
{
name: 'host',
label: () => translate('Host'),
isSortable: false,
isVisible: false
},
{
name: 'elapsedTime',
label: () => translate('ElapsedTime'),
Expand Down

0 comments on commit cb673dd

Please sign in to comment.