@@ -256,43 +256,43 @@ export const TemplateSettingsForm: FC<TemplateSettingsForm> = ({
256
256
</ FormFields >
257
257
</ FormSection >
258
258
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,
262
262
while ports with the Authenticated sharing level can only be accessed
263
263
by authenticated Coder users. Ports with the Owner sharing level can
264
264
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 >
296
296
297
297
< FormFooter onCancel = { onCancel } isLoading = { isSubmitting } />
298
298
</ HorizontalForm >
0 commit comments