diff --git a/pkg/harvester/detail/kubevirt.io.virtualmachine/VirtualMachineTabs/VirtualMachineKeypairs.vue b/pkg/harvester/detail/kubevirt.io.virtualmachine/VirtualMachineTabs/VirtualMachineKeypairs.vue index 876fc1e9..5c4d5209 100644 --- a/pkg/harvester/detail/kubevirt.io.virtualmachine/VirtualMachineTabs/VirtualMachineKeypairs.vue +++ b/pkg/harvester/detail/kubevirt.io.virtualmachine/VirtualMachineTabs/VirtualMachineKeypairs.vue @@ -31,10 +31,10 @@ export default { toggleShow(idx) { const ssh = this.sshKeys[idx]; - this.$set(this.sshKeys, idx, { + this.sshKeys[idx] = { ...ssh, showKey: !ssh.showKey - }); + }; }, getKeys() { diff --git a/pkg/harvester/dialog/HarvesterRestoreDialog.vue b/pkg/harvester/dialog/HarvesterRestoreDialog.vue index b6be7851..f18a6035 100644 --- a/pkg/harvester/dialog/HarvesterRestoreDialog.vue +++ b/pkg/harvester/dialog/HarvesterRestoreDialog.vue @@ -76,9 +76,9 @@ export default { const name = `restore-${ this.backupName }-${ randomStr(5).toLowerCase() }`; if (!this.backupName) { - this.$set(this, 'errors', [ + this['errors'] = [ this.t('harvester.modal.restore.message.backup') - ]); + ]; buttonCb(false); return; diff --git a/pkg/harvester/edit/harvesterhci.io.storage/provisioners/driver.longhorn.io.vue b/pkg/harvester/edit/harvesterhci.io.storage/provisioners/driver.longhorn.io.vue index 8d5f7dad..f0fadc43 100644 --- a/pkg/harvester/edit/harvesterhci.io.storage/provisioners/driver.longhorn.io.vue +++ b/pkg/harvester/edit/harvesterhci.io.storage/provisioners/driver.longhorn.io.vue @@ -156,10 +156,10 @@ export default { volumeEncryption: { set(neu) { - this.$set(this.value, 'parameters', { + this.value['parameters'] = { ...this.value.parameters, encrypted: neu - }); + }; }, get() { @@ -182,7 +182,7 @@ export default { set(selectedSecret) { const [namespace, name] = selectedSecret.split('/'); - this.$set(this.value, 'parameters', { + this.value['parameters'] = { ...this.value.parameters, [CSI_PROVISIONER_SECRET_NAME]: name, [CSI_NODE_PUBLISH_SECRET_NAME]: name, @@ -190,7 +190,7 @@ export default { [CSI_PROVISIONER_SECRET_NAMESPACE]: namespace, [CSI_NODE_PUBLISH_SECRET_NAMESPACE]: namespace, [CSI_NODE_STAGE_SECRET_NAMESPACE]: namespace - }); + }; } }, diff --git a/pkg/harvester/edit/harvesterhci.io.virtualmachineimage.vue b/pkg/harvester/edit/harvesterhci.io.virtualmachineimage.vue index 6fc661d8..fc50e6ee 100644 --- a/pkg/harvester/edit/harvesterhci.io.virtualmachineimage.vue +++ b/pkg/harvester/edit/harvesterhci.io.virtualmachineimage.vue @@ -198,14 +198,14 @@ export default { set(neu) { if (neu === DECRYPT || neu === ENCRYPT) { this.value.spec.sourceType = CLONE; - this.$set(this.value.spec, 'securityParameters', { + this.value.spec['securityParameters'] = { cryptoOperation: neu, sourceImageName: '', sourceImageNamespace: this.value.metadata.namespace - }); + }; this.selectedImage = null; } else { - this.$delete(this.value.spec, 'securityParameters'); + delete this.value.spec['securityParameters']; this.value.spec.sourceType = neu; } } diff --git a/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachineUSBDevices/DeviceList.vue b/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachineUSBDevices/DeviceList.vue index e1bd50f8..8f54506f 100644 --- a/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachineUSBDevices/DeviceList.vue +++ b/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachineUSBDevices/DeviceList.vue @@ -112,7 +112,7 @@ export default { }, changeRows(filterRows) { - this.$set(this, 'filterRows', filterRows); + this['filterRows'] = filterRows; }, sortGenerationFn() { diff --git a/pkg/harvester/mixins/harvester-vm/index.js b/pkg/harvester/mixins/harvester-vm/index.js index 00251ac1..0bedf1cf 100644 --- a/pkg/harvester/mixins/harvester-vm/index.js +++ b/pkg/harvester/mixins/harvester-vm/index.js @@ -1406,7 +1406,7 @@ export default { if (value) { set(this.spec.template.spec.domain.cpu, 'dedicatedCpuPlacement', true); } else { - this.$delete(this.spec.template.spec.domain.cpu, 'dedicatedCpuPlacement'); + delete this.spec.template.spec.domain.cpu['dedicatedCpuPlacement']; } },