Merge pull request #34 from a110605/hide_6935

Hide Enable CPU Pinning checkbox for v1.3.x in cloud template edit page
This commit is contained in:
Francesco Torchia
2024-11-13 10:33:39 +01:00
committed by GitHub
2 changed files with 5 additions and 0 deletions
@@ -433,6 +433,7 @@ export default {
<div class="spacer"></div> <div class="spacer"></div>
<Checkbox <Checkbox
v-if="value.cpuPinningFeatureEnabled"
v-model="cpuPinning" v-model="cpuPinning"
class="check" class="check"
type="checkbox" type="checkbox"
@@ -51,6 +51,10 @@ export default class HciVmTemplate extends HarvesterResource {
}); });
} }
get cpuPinningFeatureEnabled() {
return this.$rootGetters['harvester-common/getFeatureEnabled']('cpuPinning');
}
addVersion(moreQuery = {}) { addVersion(moreQuery = {}) {
const router = this.currentRouter(); const router = this.currentRouter();