File tree Expand file tree Collapse file tree 4 files changed +25
-12
lines changed Expand file tree Collapse file tree 4 files changed +25
-12
lines changed Original file line number Diff line number Diff line change @@ -205,16 +205,20 @@ export default function ConfigMapList({
205
205
</ div >
206
206
</ div >
207
207
</ div >
208
+
208
209
{ DraftComments && showComments && selectedDraft && (
209
210
< DraftComments
210
211
draftId = { selectedDraft . draftId }
211
212
draftVersionId = { selectedDraft . draftVersionId }
212
213
toggleDraftComments = { toggleDraftComments }
213
214
/>
214
215
) }
215
- < div className = "variables-widget-position-cmcs" >
216
- < FloatingVariablesSuggestions zIndex = { 100 } appId = { appId } envId = { envId } clusterId = { clusterId } />
217
- </ div >
216
+
217
+ { window . _env_ . ENABLE_SCOPED_VARIABLES && (
218
+ < div className = "variables-widget-position-cmcs" >
219
+ < FloatingVariablesSuggestions zIndex = { 100 } appId = { appId } envId = { envId } clusterId = { clusterId } />
220
+ </ div >
221
+ ) }
218
222
</ div >
219
223
)
220
224
}
Original file line number Diff line number Diff line change @@ -196,9 +196,12 @@ export default function SecretList({
196
196
toggleDraftComments = { toggleDraftComments }
197
197
/>
198
198
) }
199
- < div className = "variables-widget-position-cmcs" >
200
- < FloatingVariablesSuggestions zIndex = { 100 } appId = { appId } envId = { envId } clusterId = { clusterId } />
201
- </ div >
199
+
200
+ { window . _env_ . ENABLE_SCOPED_VARIABLES && (
201
+ < div className = "variables-widget-position-cmcs" >
202
+ < FloatingVariablesSuggestions zIndex = { 100 } appId = { appId } envId = { envId } clusterId = { clusterId } />
203
+ </ div >
204
+ ) }
202
205
</ div >
203
206
)
204
207
}
Original file line number Diff line number Diff line change @@ -623,9 +623,12 @@ export default function DeploymentTemplateOverrideForm({
623
623
} `}
624
624
onSubmit = { handleSaveChanges }
625
625
>
626
- < div className = "variables-widget-position" >
627
- < FloatingVariablesSuggestions zIndex = { 1004 } appId = { appId } envId = { envId } clusterId = { clusterId } />
628
- </ div >
626
+ { window . _env_ . ENABLE_SCOPED_VARIABLES && (
627
+ < div className = "variables-widget-position" >
628
+ < FloatingVariablesSuggestions zIndex = { 1004 } appId = { appId } envId = { envId } clusterId = { clusterId } />
629
+ </ div >
630
+ ) }
631
+
629
632
< DeploymentTemplateOptionsTab
630
633
isEnvOverride = { true }
631
634
disableVersionSelect = { readOnlyPublishedMode || ! state . duplicate }
Original file line number Diff line number Diff line change @@ -880,9 +880,12 @@ export default function DeploymentConfig({
880
880
} `}
881
881
onSubmit = { handleSaveChanges }
882
882
>
883
- < div className = "variables-widget-position" >
884
- < FloatingVariablesSuggestions zIndex = { 100 } appId = { appId } />
885
- </ div >
883
+ { window . _env_ . ENABLE_SCOPED_VARIABLES && (
884
+ < div className = "variables-widget-position" >
885
+ < FloatingVariablesSuggestions zIndex = { 100 } appId = { appId } />
886
+ </ div >
887
+ ) }
888
+
886
889
< DeploymentTemplateOptionsTab
887
890
codeEditorValue = { readOnlyPublishedMode ? state . publishedState ?. tempFormData : state . tempFormData }
888
891
disableVersionSelect = { readOnlyPublishedMode }
You can’t perform that action at this time.
0 commit comments