feat(tasks): display task description if it exists (#2172)

Fixes #2125
This commit is contained in:
Olivier Lambert
2017-05-25 12:45:33 +02:00
committed by Julien Fontanet
parent 808e674503
commit 6785c48709

View File

@@ -42,7 +42,7 @@ export const TaskItem = connectStore(() => ({
host: createGetObject((_, props) => props.task.$host)
}))(({ task, host }) => <SingleLineRow className='mb-1'>
<Col mediumSize={6}>
{task.name_label} (on {host
{task.name_label} ({task.name_description && `${task.name_description} `}on {host
? <Link to={`/hosts/${host.id}`}>{host.name_label}</Link>
: `unknown host ${task.$host}`
})