Skip to content

Commit

Permalink
Minor update EE tables
Browse files Browse the repository at this point in the history
* Add table header `actions`
* Add `name` as default search

See: ansible#7884
Also: ansible#9087
  • Loading branch information
nixocio committed Feb 24, 2021
1 parent e9ac03a commit 52e8128
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,14 @@ function ExecutionEnvironmentList({ i18n }) {
toolbarSearchableKeys={searchableKeys}
toolbarRelatedSearchableKeys={relatedSearchableKeys}
toolbarSearchColumns={[
{
name: i18n._(t`Name`),
key: 'name__icontains',
isDefault: true,
},
{
name: i18n._(t`Image`),
key: 'image__icontains',
isDefault: true,
},
]}
toolbarSortColumns={[
Expand All @@ -150,6 +154,7 @@ function ExecutionEnvironmentList({ i18n }) {
<HeaderCell sortKey="name">{i18n._(t`Name`)}</HeaderCell>
<HeaderCell>{i18n._(t`Image`)}</HeaderCell>
<HeaderCell>{i18n._(t`Organization`)}</HeaderCell>
<HeaderCell>{i18n._(t`Actions`)}</HeaderCell>
</HeaderRow>
}
renderToolbar={props => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function ExecutionEnvironmentListItem({
i18n._(t`Globally Available`)
)}
</Td>
<ActionsTd dataLabel={i18n._(t`Actions`)}>
<ActionsTd dataLabel={i18n._(t`Actions`)} gridColumns="auto 40px">
<ActionItem
visible={executionEnvironment.summary_fields.user_capabilities.edit}
tooltip={i18n._(t`Edit Execution Environment`)}
Expand Down

0 comments on commit 52e8128

Please sign in to comment.