1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 06:51:10 +03:00

Changes conditional canAdd statement based on PR feedback

Signed-off-by: catjones9 <catjones@redhat.com>
This commit is contained in:
catjones9 2019-08-13 13:47:59 -04:00 committed by Jake McDermott
parent 9e0d113063
commit e591305dfe

View File

@ -215,7 +215,7 @@ class TemplatesList extends Component {
itemsToDelete={selected}
itemName={i18n._(t`Template`)}
/>,
canAdd ? (
canAdd && (
<Dropdown
key="add"
isPlain
@ -242,7 +242,7 @@ class TemplatesList extends Component {
</DropdownItem>,
]}
/>
) : null,
)
]}
/>
)}
@ -257,7 +257,7 @@ class TemplatesList extends Component {
/>
)}
emptyStateControls={
canAdd ? (
canAdd && (
<Dropdown
key="add"
isPlain
@ -282,7 +282,7 @@ class TemplatesList extends Component {
</DropdownItem>,
]}
/>
) : null
)
}
/>
</Card>