Skip to content

Commit

Permalink
Add node to Active Tasks
Browse files Browse the repository at this point in the history
Include Node in Active Tasks Component as it was already in the api response.
  • Loading branch information
Liquid-NeoN authored and janl committed Jan 3, 2024
1 parent 1b2c7e4 commit 1388f87
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
12 changes: 8 additions & 4 deletions app/addons/activetasks/assets/scss/activetasks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,27 @@
}

&.header-database {
width: 30%;
width: 25%;
}

&.header-tarted-on {
width: 13%;
width: 10%;
}

&.header-updated-on {
width: 13%;
width: 10%;
}

&.header-node {
width: 15%;
}

&.header-pid {
width: 10%;
}

&.header-progress {
width: 23%;
width: 20%;
}

.fonticon-up-dir,
Expand Down
2 changes: 2 additions & 0 deletions app/addons/activetasks/components/tablebodycontents.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export default class ActiveTaskTableBodyContents extends React.Component {
objectField: activeTasksHelpers.getDatabaseFieldMessage(item),
started_on: activeTasksHelpers.getTimeInfo(item.started_on),
updated_on: activeTasksHelpers.getTimeInfo(item.updated_on),
node: item.node,
pid: item.pid.replace(/[<>]/g, ''),
progress: activeTasksHelpers.getProgressMessage(item),
};
Expand Down Expand Up @@ -109,6 +110,7 @@ export default class ActiveTaskTableBodyContents extends React.Component {
<td>{objectFieldMsg}</td>
<td>{startedOnMsg}</td>
<td>{updatedOnMsg}</td>
<td>{rowData.node}</td>
<td>{rowData.pid}</td>
<td>{progressMsg}</td>
</tr>
Expand Down
1 change: 1 addition & 0 deletions app/addons/activetasks/components/tableheader.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export default class ActiveTasksTableHeader extends React.Component {
['database', 'Database'],
['started-on', 'Started on'],
['updated-on', 'Updated on'],
['node', 'Node'],
['pid', 'PID'],
['progress', 'Status']
]
Expand Down

0 comments on commit 1388f87

Please sign in to comment.