mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 21:21:44 +00:00
align CPU pinning checkbox position in cloud template
(cherry picked from commit 59bf735f8b8d60e1eee02a790e8be1ced65dbff7)
This commit is contained in:
parent
5c96e90d58
commit
50bdd53186
@ -434,7 +434,7 @@ export default {
|
||||
<div class="spacer"></div>
|
||||
<Checkbox
|
||||
v-if="value.cpuPinningFeatureEnabled"
|
||||
v-model="cpuPinning"
|
||||
v-model:value="cpuPinning"
|
||||
class="check"
|
||||
type="checkbox"
|
||||
tooltip-key="harvester.virtualMachine.cpuPinning.tooltip"
|
||||
|
||||
@ -210,6 +210,10 @@ export default class HciVmTemplateVersion extends HarvesterResource {
|
||||
await templateResource.save();
|
||||
}
|
||||
|
||||
get cpuPinningFeatureEnabled() {
|
||||
return this.$rootGetters['harvester-common/getFeatureEnabled']('cpuPinning');
|
||||
}
|
||||
|
||||
get defaultVersion() {
|
||||
const templates = this.$rootGetters['harvester/all'](HCI.VM_TEMPLATE);
|
||||
const template = templates.find((T) => this.templateId === T.id);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user