New: Show User Agent in System->Tasks for externally triggered commands (#2261)

This commit is contained in:
Robin Dadswell 2021-05-23 06:27:22 +01:00 committed by GitHub
parent 9b673c028a
commit bc6261efb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 53 additions and 1 deletions

View file

@ -156,6 +156,7 @@ class QueuedTaskRow extends Component {
status,
duration,
message,
clientUserAgent,
longDateFormat,
timeFormat,
onCancelPress
@ -191,7 +192,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}
@ -255,6 +267,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,