add feature flag config

This commit is contained in:
andy.lee
2024-11-12 11:50:31 +01:00
committed by Francesco Torchia
parent aa3c9268e3
commit 77d7f13836
7 changed files with 107 additions and 16 deletions
@@ -197,6 +197,10 @@ export default {
},
showCpuPinningBanner() {
if (!this.value.cpuPinningFeatureEnabled) {
return false;
}
if (this.mode === 'edit') {
return this.cpuPinning !== !!this.cloneVM.spec.template.spec.domain.cpu.dedicatedCpuPlacement;
}
@@ -832,6 +836,7 @@ export default {
/>
<Checkbox
v-if="value.cpuPinningFeatureEnabled"
v-model:value="cpuPinning"
:disabled="!enableCpuPinningCheckbox"
class="check"