mirror of
https://github.com/ansible/awx.git
synced 2026-03-25 04:45:03 -02:30
Merge pull request #11776 from nixocio/ui_ternary
Use ternary rather than &&
This commit is contained in:
@@ -109,12 +109,12 @@ function NotificationTemplateDetail({ template, defaultMessages }) {
|
|||||||
value={template.description}
|
value={template.description}
|
||||||
dataCy="nt-detail-description"
|
dataCy="nt-detail-description"
|
||||||
/>
|
/>
|
||||||
{summary_fields.recent_notifications.length && (
|
{summary_fields.recent_notifications.length ? (
|
||||||
<Detail
|
<Detail
|
||||||
label={t`Status`}
|
label={t`Status`}
|
||||||
value={<StatusLabel status={testStatus} />}
|
value={<StatusLabel status={testStatus} />}
|
||||||
/>
|
/>
|
||||||
)}
|
) : null}
|
||||||
{summary_fields.organization ? (
|
{summary_fields.organization ? (
|
||||||
<Detail
|
<Detail
|
||||||
label={t`Organization`}
|
label={t`Organization`}
|
||||||
|
|||||||
Reference in New Issue
Block a user