Skip to content

Commit

Permalink
Only show namespace details form when owner
Browse files Browse the repository at this point in the history
  • Loading branch information
amvanbaren committed Jan 27, 2025
1 parent e56f7e1 commit 4499afd
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions webui/src/pages/user/user-settings-namespace-detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,20 @@ export const NamespaceDetail: FunctionComponent<NamespaceDetailProps> = props =>
</Grid>
{
props.namespace.membersUrl
? <Grid item>
<UserNamespaceMemberList
setLoadingState={props.setLoadingState}
namespace={props.namespace}
filterUsers={props.filterUsers}
fixSelf={props.fixSelf} />
</Grid>
? <>
<Grid item>
<UserNamespaceMemberList
setLoadingState={props.setLoadingState}
namespace={props.namespace}
filterUsers={props.filterUsers}
fixSelf={props.fixSelf} />
</Grid>
<Grid item>
<UserNamespaceDetails namespace={props.namespace}/>
</Grid>
</>
: null
}
<Grid item>
<UserNamespaceDetails namespace={props.namespace}/>
</Grid>
<Grid item>
<UserNamespaceExtensionListContainer
namespace={props.namespace}
Expand Down

0 comments on commit 4499afd

Please sign in to comment.