Show User Agent in System->Tasks for externally triggered commands (#63)

(cherry picked from commit fe8f319f7bfdadb7218b6313ada6cae1d2a35ad8)

Co-authored-by: Taloth Saldono <Taloth@users.noreply.github.com>
This commit is contained in:
Robin Dadswell
2021-05-20 12:04:37 +01:00
committed by GitHub
parent 74eee38aad
commit f85235d214
6 changed files with 52 additions and 1 deletions

View File

@@ -10,6 +10,15 @@
width: 100%;
}
.commandName {
display: inline-block;
min-width: 220px;
}
.userAgent {
color: #b0b0b0;
}
.queued,
.started,
.ended {

View File

@@ -157,6 +157,7 @@ class QueuedTaskRow extends Component {
status,
duration,
message,
clientUserAgent,
longDateFormat,
timeFormat,
onCancelPress
@@ -192,7 +193,18 @@ class QueuedTaskRow extends Component {
</span>
</TableRowCell>
<TableRowCell>{commandName}</TableRowCell>
<TableRowCell>
<span className={styles.commandName}>
{commandName}
</span>
{
clientUserAgent ?
<span className={styles.userAgent} title="User-Agent provided by the app that called the API">
from: {clientUserAgent}
</span> :
null
}
</TableRowCell>
<TableRowCell
className={styles.queued}
@@ -256,6 +268,7 @@ QueuedTaskRow.propTypes = {
status: PropTypes.string.isRequired,
duration: PropTypes.string,
message: PropTypes.string,
clientUserAgent: PropTypes.string,
showRelativeDates: PropTypes.bool.isRequired,
shortDateFormat: PropTypes.string.isRequired,
longDateFormat: PropTypes.string.isRequired,