1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Remove org list links

This commit is contained in:
Marliana Lara 2019-04-09 11:37:43 -04:00
parent 3d6790a419
commit 2ab688932d
No known key found for this signature in database
GPG Key ID: 38C73B40DFA809EE
3 changed files with 25 additions and 28 deletions

View File

@ -100,8 +100,16 @@
--pf-c-data-list__cell--PaddingBottom: 16px;
--pf-c-data-list__cell-cell--PaddingTop: 16px;
a {
margin-right: 8px;
.awx-c-list-group {
display: inline-flex;
margin-right: 20px;
&--badge {
align-items: center;
display: flex;
justify-content: center;
margin-left: 10px;
}
}
}
@ -224,18 +232,12 @@
border-bottom: 1px solid #d7d7d7;
}
.at-c-listCardBody {
--pf-c-card__footer--PaddingX: 0;
--pf-c-card__footer--PaddingY: 0;
--pf-c-card__body--PaddingX: 0;
--pf-c-card__body--PaddingY: 0;
}
.awx-c-card {
position: relative;
}
// PF Alert notification component overrides
.pf-c-alert__title {
--pf-c-alert__title--PaddingTop: 20px;

View File

@ -16,7 +16,7 @@ class OrganizationListItem extends React.Component {
const {
itemId,
name,
userCount,
memberCount,
teamCount,
isSelected,
onSelect,
@ -45,22 +45,18 @@ class OrganizationListItem extends React.Component {
</span>
</div>
<div className="pf-c-data-list__cell">
<Link to={`${detailUrl}/access`}>
<Trans>Users</Trans>
</Link>
<Badge isRead>
{' '}
{userCount}
{' '}
<span className="awx-c-list-group">
<Trans>Members</Trans>
<Badge className="awx-c-list-group--badge" isRead>
{memberCount}
</Badge>
<Link to={`${detailUrl}/teams`}>
</span>
<span className="awx-c-list-group">
<Trans>Teams</Trans>
</Link>
<Badge isRead>
{' '}
<Badge className="awx-c-list-group--badge" isRead>
{teamCount}
{' '}
</Badge>
</span>
</div>
<div className="pf-c-data-list__cell" />
</li>
@ -68,4 +64,3 @@ class OrganizationListItem extends React.Component {
}
}
export default OrganizationListItem;

View File

@ -355,7 +355,7 @@ class OrganizationsList extends Component {
itemId={o.id}
name={o.name}
detailUrl={`${match.url}/${o.id}`}
userCount={o.summary_fields.related_field_counts.users}
memberCount={o.summary_fields.related_field_counts.users}
teamCount={o.summary_fields.related_field_counts.teams}
isSelected={selected.includes(o.id)}
onSelect={() => this.onSelect(o.id, o.name)}