File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
apps/webapp/app/components/navigation Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ export function OrganizationSettingsSideMenu({
4242 const { isManagedCloud } = useFeatures ( ) ;
4343 const currentPlan = useCurrentPlan ( ) ;
4444 const isAdmin = useHasAdminAccess ( ) ;
45+ const showBuildInfo = isAdmin || ! isManagedCloud ;
4546
4647 return (
4748 < div
@@ -107,23 +108,23 @@ export function OrganizationSettingsSideMenu({
107108 { buildInfo . appVersion || `v${ buildInfo . packageVersion } ` }
108109 </ Paragraph >
109110 </ div >
110- { isAdmin && buildInfo . buildTimestampSeonds && (
111+ { showBuildInfo && buildInfo . buildTimestampSeonds && (
111112 < div className = "flex flex-col gap-1" >
112113 < SideMenuHeader title = "Build timestamp" />
113114 < Paragraph variant = "extra-small" className = "px-2 text-text-dimmed" >
114115 { new Date ( Number ( buildInfo . buildTimestampSeonds ) * 1000 ) . toISOString ( ) }
115116 </ Paragraph >
116117 </ div >
117118 ) }
118- { isAdmin && buildInfo . gitRefName && (
119+ { showBuildInfo && buildInfo . gitRefName && (
119120 < div className = "flex flex-col gap-1" >
120121 < SideMenuHeader title = "Git ref" />
121122 < Paragraph variant = "extra-small" className = "px-2 text-text-dimmed" >
122123 { buildInfo . gitRefName }
123124 </ Paragraph >
124125 </ div >
125126 ) }
126- { isAdmin && buildInfo . gitSha && (
127+ { showBuildInfo && buildInfo . gitSha && (
127128 < div className = "flex flex-col gap-1" >
128129 < SideMenuHeader title = "Git sha" />
129130 < Paragraph variant = "extra-small" className = "px-2 text-text-dimmed" >
You can’t perform that action at this time.
0 commit comments