Skip to content

Commit

Permalink
Fix Provisioner/Force-formatted fields visibilty
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
  • Loading branch information
torchiaf committed Sep 25, 2024
1 parent cbb7a8f commit 325b772
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pkg/harvester/edit/harvesterhci.io.host/HarvesterDisk.vue
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export default {
},
isLonghornV1() {
return this.isLonghorn && (this.longhornSystemVersion === LONGHORN_VERSION_V1 || this.forceLonghornV1);
return this.isLonghorn && this.value.provisionerVersion === LONGHORN_VERSION_V1;
},
provisionerTooltip() {
Expand Down Expand Up @@ -293,7 +293,7 @@ export default {
if (provisioner === LONGHORN_DRIVER) {
this.value.provisionerVersion = provisionerVersion || LONGHORN_VERSION_V1;
} else {
delete this.value.provisionerVersion;
this.value.provisionerVersion = undefined;
}
},
Expand Down Expand Up @@ -424,16 +424,15 @@ export default {
</div>
<div class="row mt-10">
<div class="col span-6">
<div :class="`col span-${ value.isNew ? '6': '12' }`">
<LabeledSelect
v-if="value.isNew"
v-model="provisioner"
:mode="mode"
label-key="harvester.host.disk.provisioner"
:localized-label="true"
:searchable="true"
:options="provisioners"
:disabled="isProvisioned"
:disabled="isProvisioned || !value.isNew"
:tooltip="provisionerTooltip"
@keydown.native.enter.prevent="()=>{}"
/>
Expand Down

0 comments on commit 325b772

Please sign in to comment.