mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 15:58:45 -03:30
Fix resource access list user links
This commit is contained in:
@@ -79,10 +79,10 @@ class ResourceAccessListItem extends React.Component {
|
|||||||
<DataListCell key="name">
|
<DataListCell key="name">
|
||||||
{accessRecord.username && (
|
{accessRecord.username && (
|
||||||
<TextContent>
|
<TextContent>
|
||||||
{accessRecord.url ? (
|
{accessRecord.id ? (
|
||||||
<Text component={TextVariants.h6}>
|
<Text component={TextVariants.h6}>
|
||||||
<Link
|
<Link
|
||||||
to={{ pathname: accessRecord.url }}
|
to={{ pathname: `/users/${accessRecord.id}/details` }}
|
||||||
css="font-weight: bold"
|
css="font-weight: bold"
|
||||||
>
|
>
|
||||||
{accessRecord.username}
|
{accessRecord.username}
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
|
|||||||
<ForwardRef
|
<ForwardRef
|
||||||
to={
|
to={
|
||||||
Object {
|
Object {
|
||||||
"pathname": "/bar",
|
"pathname": "/users/2/details",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
@@ -114,7 +114,7 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
|
|||||||
<ForwardRef
|
<ForwardRef
|
||||||
to={
|
to={
|
||||||
Object {
|
Object {
|
||||||
"pathname": "/bar",
|
"pathname": "/users/2/details",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
@@ -193,7 +193,7 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
|
|||||||
<ForwardRef
|
<ForwardRef
|
||||||
to={
|
to={
|
||||||
Object {
|
Object {
|
||||||
"pathname": "/bar",
|
"pathname": "/users/2/details",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
@@ -260,7 +260,7 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
|
|||||||
<Styled(Link)
|
<Styled(Link)
|
||||||
to={
|
to={
|
||||||
Object {
|
Object {
|
||||||
"pathname": "/bar",
|
"pathname": "/users/2/details",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
@@ -308,7 +308,7 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
|
|||||||
forwardedRef={null}
|
forwardedRef={null}
|
||||||
to={
|
to={
|
||||||
Object {
|
Object {
|
||||||
"pathname": "/bar",
|
"pathname": "/users/2/details",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
@@ -316,18 +316,18 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
|
|||||||
className="sc-bdVaJa fqQVUT"
|
className="sc-bdVaJa fqQVUT"
|
||||||
to={
|
to={
|
||||||
Object {
|
Object {
|
||||||
"pathname": "/bar",
|
"pathname": "/users/2/details",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<LinkAnchor
|
<LinkAnchor
|
||||||
className="sc-bdVaJa fqQVUT"
|
className="sc-bdVaJa fqQVUT"
|
||||||
href="/bar"
|
href="/users/2/details"
|
||||||
navigate={[Function]}
|
navigate={[Function]}
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
className="sc-bdVaJa fqQVUT"
|
className="sc-bdVaJa fqQVUT"
|
||||||
href="/bar"
|
href="/users/2/details"
|
||||||
onClick={[Function]}
|
onClick={[Function]}
|
||||||
>
|
>
|
||||||
jane
|
jane
|
||||||
|
|||||||
Reference in New Issue
Block a user