File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ const featureFlags = {
28
28
repositoryFinderSearch : false ,
29
29
createProjectModal : false ,
30
30
repoConfigListAndDetail : false ,
31
+ showRepoConfigMenuItem : false ,
31
32
} ;
32
33
33
34
type FeatureFlags = typeof featureFlags ;
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ export default function OrganizationSelector() {
24
24
const { data : billingMode } = useOrgBillingMode ( ) ;
25
25
const getOrgURL = useGetOrgURL ( ) ;
26
26
const repoConfigListAndDetail = useFeatureFlag ( "repoConfigListAndDetail" ) ;
27
+ const showRepoConfigMenuItem = useFeatureFlag ( "showRepoConfigMenuItem" ) ;
27
28
28
29
// we should have an API to ask for permissions, until then we duplicate the logic here
29
30
const canCreateOrgs = user && ! isOrganizationOwned ( user ) ;
@@ -55,7 +56,8 @@ export default function OrganizationSelector() {
55
56
56
57
// Show members if we have an org selected
57
58
if ( currentOrg . data ) {
58
- if ( repoConfigListAndDetail ) {
59
+ // Check both flags as one just controls if the menu item is present, the other if the page is accessible
60
+ if ( repoConfigListAndDetail && showRepoConfigMenuItem ) {
59
61
linkEntries . push ( {
60
62
title : "Repositories" ,
61
63
customContent : < LinkEntry > Repositories</ LinkEntry > ,
You can’t perform that action at this time.
0 commit comments