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:
parent
9e0d113063
commit
e591305dfe
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user