Skip to content

Commit 2a4ae47

Browse files
committed
fmt
1 parent f7e01ad commit 2a4ae47

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

site/src/pages/TemplateSettingsPage/TemplateGeneralSettingsPage/TemplateSettingsForm.tsx

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -256,43 +256,43 @@ export const TemplateSettingsForm: FC<TemplateSettingsForm> = ({
256256
</FormFields>
257257
</FormSection>
258258

259-
<FormSection
260-
title="Port Sharing"
261-
description="Shared ports with the Public sharing level can be accessed by anyone,
259+
<FormSection
260+
title="Port Sharing"
261+
description="Shared ports with the Public sharing level can be accessed by anyone,
262262
while ports with the Authenticated sharing level can only be accessed
263263
by authenticated Coder users. Ports with the Owner sharing level can
264264
only be accessed by the workspace owner."
265-
>
266-
<FormFields>
267-
<TextField
268-
{...getFieldHelpers("max_port_share_level", {
269-
helperText:
270-
"The maximum level of port sharing allowed for workspaces.",
271-
})}
272-
disabled={isSubmitting || !portSharingControlsEnabled}
273-
fullWidth
274-
select
275-
value={
276-
portSharingControlsEnabled
277-
? form.values.max_port_share_level
278-
: "public"
279-
}
280-
label="Maximum Port Sharing Level"
281-
>
282-
<MenuItem value="owner">Owner</MenuItem>
283-
<MenuItem value="authenticated">Authenticated</MenuItem>
284-
<MenuItem value="public">Public</MenuItem>
285-
</TextField>
286-
{!portSharingControlsEnabled && (
287-
<Stack direction="row" spacing={2} alignItems="center">
288-
<EnterpriseBadge />
289-
<FormHelperText>
290-
Enterprise license required to control max port sharing level.
291-
</FormHelperText>
292-
</Stack>
293-
)}
294-
</FormFields>
295-
</FormSection>
265+
>
266+
<FormFields>
267+
<TextField
268+
{...getFieldHelpers("max_port_share_level", {
269+
helperText:
270+
"The maximum level of port sharing allowed for workspaces.",
271+
})}
272+
disabled={isSubmitting || !portSharingControlsEnabled}
273+
fullWidth
274+
select
275+
value={
276+
portSharingControlsEnabled
277+
? form.values.max_port_share_level
278+
: "public"
279+
}
280+
label="Maximum Port Sharing Level"
281+
>
282+
<MenuItem value="owner">Owner</MenuItem>
283+
<MenuItem value="authenticated">Authenticated</MenuItem>
284+
<MenuItem value="public">Public</MenuItem>
285+
</TextField>
286+
{!portSharingControlsEnabled && (
287+
<Stack direction="row" spacing={2} alignItems="center">
288+
<EnterpriseBadge />
289+
<FormHelperText>
290+
Enterprise license required to control max port sharing level.
291+
</FormHelperText>
292+
</Stack>
293+
)}
294+
</FormFields>
295+
</FormSection>
296296

297297
<FormFooter onCancel={onCancel} isLoading={isSubmitting} />
298298
</HorizontalForm>

0 commit comments

Comments
 (0)