Skip to content
This repository has been archived by the owner on Nov 12, 2019. It is now read-only.

Commit

Permalink
Bug 1357802 - Show task.extra in task inspector (#209)
Browse files Browse the repository at this point in the history
* Bug 1357802 - Show task.extra in task inspector

Add fix for displaying "Extra" from task.extra in "Task Details" view

* Bug 1357802 - Add condition for no task.extra

Add condition to skip task.extra rendering when it is non-existent

* Bug 1357802 - Treat task.extra as an object

task.extra will be a plain object when not specified
  • Loading branch information
swapneshks authored and eliperelman committed May 4, 2017
1 parent 48a0322 commit eca8f9c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/lib/ui/taskinfo.jsx
Expand Up @@ -216,6 +216,17 @@ const TaskInfo = React.createClass({
</td>
</tr>

{Object.keys(task.extra).length > 0 && (
<tr>
<td>Extra</td>
<td>
<Code language="json">
{JSON.stringify(task.extra, null, 2)}
</Code>
</td>
</tr>
)}

<tr>
<td>Debug</td>
<td>
Expand Down

0 comments on commit eca8f9c

Please sign in to comment.