File tree Expand file tree Collapse file tree 1 file changed +19
-16
lines changed
components/dashboard/src/projects Expand file tree Collapse file tree 1 file changed +19
-16
lines changed Original file line number Diff line number Diff line change @@ -94,22 +94,25 @@ export default function () {
94
94
checked = { ! project . settings ?. keepOutdatedPrebuildsRunning }
95
95
onChange = { ( { target } ) => updateProjectSettings ( { keepOutdatedPrebuildsRunning : ! target . checked } ) }
96
96
/>
97
- < br > </ br >
98
- < h3 className = "mt-12" > Workspace Persistence</ h3 >
99
- < CheckBox
100
- title = {
101
- < span >
102
- Enable Persistent Volume Claim{ " " }
103
- < PillLabel type = "warn" className = "font-semibold mt-2 ml-2 py-0.5 px-2 self-center" >
104
- Experimental
105
- </ PillLabel >
106
- </ span >
107
- }
108
- desc = { < span > Experimental feature that is still under development.</ span > }
109
- checked = { project . settings ?. usePersistentVolumeClaim ?? false }
110
- disabled = { ! showPersistentVolumeClaimUI }
111
- onChange = { ( { target } ) => updateProjectSettings ( { usePersistentVolumeClaim : target . checked } ) }
112
- />
97
+ { showPersistentVolumeClaimUI && (
98
+ < >
99
+ < br > </ br >
100
+ < h3 className = "mt-12" > Workspace Persistence</ h3 >
101
+ < CheckBox
102
+ title = {
103
+ < span >
104
+ Enable Persistent Volume Claim{ " " }
105
+ < PillLabel type = "warn" className = "font-semibold mt-2 ml-2 py-0.5 px-2 self-center" >
106
+ Experimental
107
+ </ PillLabel >
108
+ </ span >
109
+ }
110
+ desc = { < span > Experimental feature that is still under development.</ span > }
111
+ checked = { project . settings ?. usePersistentVolumeClaim ?? false }
112
+ onChange = { ( { target } ) => updateProjectSettings ( { usePersistentVolumeClaim : target . checked } ) }
113
+ />
114
+ </ >
115
+ ) }
113
116
</ ProjectSettingsPage >
114
117
) ;
115
118
}
You can’t perform that action at this time.
0 commit comments