mirror of
https://github.com/harness/drone.git
synced 2025-05-05 23:42:57 +00:00
fix: [CODE-3500] put UI Git LFS support in the repository setting behind FF (#3698)
This commit is contained in:
parent
8b277e62d7
commit
799a8b0de8
@ -83,6 +83,7 @@ const GeneralSettingsContent = (props: GeneralSettingsProps) => {
|
||||
path: `/api/v1/repos/${repoMetadata?.path}/+/public-access`
|
||||
})
|
||||
|
||||
const { CODE_GIT_LFS_ENABLED } = hooks?.useFeatureFlags()
|
||||
const { data: generalSettingsData, refetch: refetchSettings } = useGet({
|
||||
path: `/api/v1/repos/${repoMetadata?.path}/+/settings/general`,
|
||||
queryParams: { routingId: routingId }
|
||||
@ -425,6 +426,7 @@ const GeneralSettingsContent = (props: GeneralSettingsProps) => {
|
||||
</Layout.Horizontal>
|
||||
</Container>
|
||||
</Render>
|
||||
<Render when={standalone || CODE_GIT_LFS_ENABLED}>
|
||||
<Container padding="medium" margin={{ bottom: 'medium' }} className={css.generalContainer}>
|
||||
<Layout.Horizontal padding={{ bottom: 'medium' }}>
|
||||
<Container className={css.label}>
|
||||
@ -475,6 +477,7 @@ const GeneralSettingsContent = (props: GeneralSettingsProps) => {
|
||||
</Layout.Vertical>
|
||||
</Layout.Horizontal>
|
||||
</Container>
|
||||
</Render>
|
||||
<Container padding="medium" margin={{ bottom: 'medium' }} className={css.generalContainer}>
|
||||
<Layout.Horizontal padding={{ bottom: 'medium' }}>
|
||||
<Container className={css.label}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user