Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Commit c437c21

Browse files
chore(batch-changes): remove visibility options from create batch changes page (#63393)
1 parent 9aa5cb8 commit c437c21

File tree

1 file changed

+1
-38
lines changed

1 file changed

+1
-38
lines changed

client/web/src/enterprise/batches/create/ConfigurationForm.tsx

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import React, { useCallback, useState } from 'react'
22

3-
import { mdiInformationOutline, mdiLock } from '@mdi/js'
43
import classNames from 'classnames'
54
import { noop } from 'lodash'
65
import { useNavigate, useLocation } from 'react-router-dom'
76

87
import { useMutation } from '@sourcegraph/http-client'
98
import type { UserSettingFields, OrgSettingFields } from '@sourcegraph/shared/src/graphql-operations'
10-
import { Alert, Button, Container, Icon, Input, RadioButton, Tooltip, ErrorAlert, Form } from '@sourcegraph/wildcard'
9+
import { Alert, Button, Container, Input, ErrorAlert, Form } from '@sourcegraph/wildcard'
1110

1211
import type { AuthenticatedUser } from '../../../auth'
1312
import type {
@@ -206,42 +205,6 @@ export const ConfigurationForm: React.FunctionComponent<React.PropsWithChildren<
206205
</span>
207206
</small>
208207
)}
209-
<hr className="my-3" aria-hidden={true} />
210-
<strong className="d-block mb-2">
211-
Visibility
212-
<Tooltip content="Coming soon">
213-
<Icon
214-
aria-label="Private batch changes coming soon"
215-
className="ml-1"
216-
svgPath={mdiInformationOutline}
217-
/>
218-
</Tooltip>
219-
</strong>
220-
<div className="form-group mb-1" aria-hidden={true}>
221-
<RadioButton
222-
name="visibility"
223-
value="public"
224-
className="mr-2"
225-
checked={true}
226-
disabled={true}
227-
label="Public"
228-
aria-label="Public"
229-
/>
230-
</div>
231-
<div className="form-group mb-0" aria-hidden={true}>
232-
<RadioButton
233-
name="visibility"
234-
value="private"
235-
className="mr-2 mb-0"
236-
disabled={true}
237-
label={
238-
<>
239-
Private <Icon aria-hidden={true} className="text-warning" svgPath={mdiLock} />
240-
</>
241-
}
242-
aria-label="Private"
243-
/>
244-
</div>
245208
</Container>
246209

247210
{!isReadOnly && (

0 commit comments

Comments
 (0)