Skip to content

Commit 3414ff1

Browse files
committed
feat: add prod non-prod in virtual env
1 parent a724110 commit 3414ff1

File tree

1 file changed

+32
-34
lines changed

1 file changed

+32
-34
lines changed

src/Pages/GlobalConfigurations/ClustersAndEnvironments/ClusterEnvironmentDrawer/ClusterEnvironmentDrawer.tsx

Lines changed: 32 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -381,41 +381,39 @@ export const ClusterEnvironmentDrawer = ({
381381
autoFocus={!!envId}
382382
shouldTrim={false}
383383
/>
384-
{!isSelectedClusterVirtual && (
385-
<div className="flex left dc__gap-24 fs-13">
386-
<div className="dc__required-field cn-7">Type of Environment</div>
387-
<div className="flex left dc__gap-16">
388-
<label htmlFor="env-production-checkbox" className="flex cursor mb-0">
389-
<input
390-
id="env-production-checkbox"
391-
data-testid="production"
392-
type="radio"
393-
checked={data.isProduction}
394-
value="true"
395-
{...register('isProduction', {
396-
sanitizeFn: (value) => value === 'true',
397-
noTrim: true,
398-
})}
399-
/>
400-
<span className="ml-10 fw-4 mt-4">Production</span>
401-
</label>
402-
<label htmlFor="env-non-production-checkbox" className="flex cursor mb-0">
403-
<input
404-
id="env-non-production-checkbox"
405-
data-testid="nonProduction"
406-
type="radio"
407-
checked={!data.isProduction}
408-
value="false"
409-
{...register('isProduction', {
410-
sanitizeFn: (value) => value === 'true',
411-
noTrim: true,
412-
})}
413-
/>
414-
<span className="ml-10 fw-4 mt-4">Non - Production</span>
415-
</label>
416-
</div>
384+
<div className="flex left dc__gap-24 fs-13">
385+
<div className="dc__required-field cn-7">Type of Environment</div>
386+
<div className="flex left dc__gap-16">
387+
<label htmlFor="env-production-checkbox" className="flex cursor mb-0">
388+
<input
389+
id="env-production-checkbox"
390+
data-testid="production"
391+
type="radio"
392+
checked={data.isProduction}
393+
value="true"
394+
{...register('isProduction', {
395+
sanitizeFn: (value) => value === 'true',
396+
noTrim: true,
397+
})}
398+
/>
399+
<span className="ml-10 fw-4 mt-4">Production</span>
400+
</label>
401+
<label htmlFor="env-non-production-checkbox" className="flex cursor mb-0">
402+
<input
403+
id="env-non-production-checkbox"
404+
data-testid="nonProduction"
405+
type="radio"
406+
checked={!data.isProduction}
407+
value="false"
408+
{...register('isProduction', {
409+
sanitizeFn: (value) => value === 'true',
410+
noTrim: true,
411+
})}
412+
/>
413+
<span className="ml-10 fw-4 mt-4">Non - Production</span>
414+
</label>
417415
</div>
418-
)}
416+
</div>
419417
{AssignCategorySelect && (
420418
<div className="w-250">
421419
<AssignCategorySelect

0 commit comments

Comments
 (0)