File tree 1 file changed +0
-43
lines changed
site/src/pages/WorkspacePage
1 file changed +0
-43
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import { FC } from "react"
8
8
import { getFormHelpers } from "util/formUtils"
9
9
import {
10
10
FormFields ,
11
- FormSection ,
12
11
VerticalForm ,
13
12
} from "components/HorizontalForm/HorizontalForm"
14
13
import {
@@ -24,7 +23,6 @@ import {
24
23
import * as Yup from "yup"
25
24
import DialogActions from "@material-ui/core/DialogActions"
26
25
import Button from "@material-ui/core/Button"
27
- import InfoOutlined from "@material-ui/icons/InfoOutlined"
28
26
29
27
export type UpdateBuildParametersDialogProps = DialogProps & {
30
28
onClose : ( ) => void
@@ -105,47 +103,6 @@ export const UpdateBuildParametersDialog: FC<
105
103
} ) }
106
104
</ FormFields >
107
105
) }
108
- { parameters && parameters . filter ( ( p ) => ! p . mutable ) . length > 0 && (
109
- < FormSection
110
- title = {
111
- < >
112
- < InfoOutlined className = { styles . warningIcon } />
113
- Immutable parameters
114
- </ >
115
- }
116
- classes = { { infoTitle : styles . infoTitle } }
117
- description = "These parameters values are immutable and cannot be changed after the update."
118
- >
119
- < FormFields >
120
- { parameters . map ( ( parameter , index ) => {
121
- if ( parameter . mutable ) {
122
- return < > </ >
123
- }
124
-
125
- return (
126
- < RichParameterInput
127
- { ...getFieldHelpers (
128
- "rich_parameter_values[" + index + "].value" ,
129
- ) }
130
- key = { parameter . name }
131
- parameter = { parameter }
132
- initialValue = ""
133
- index = { index }
134
- onChange = { async ( value ) => {
135
- await form . setFieldValue (
136
- "rich_parameter_values." + index ,
137
- {
138
- name : parameter . name ,
139
- value : value ,
140
- } ,
141
- )
142
- } }
143
- />
144
- )
145
- } ) }
146
- </ FormFields >
147
- </ FormSection >
148
- ) }
149
106
</ VerticalForm >
150
107
</ DialogContent >
151
108
< DialogActions disableSpacing className = { styles . dialogActions } >
You can’t perform that action at this time.
0 commit comments