From 8282f4c7e9f7240972506cf151d317cdae66d181 Mon Sep 17 00:00:00 2001 From: Cody Jackson Date: Fri, 13 Sep 2024 16:49:10 -0700 Subject: [PATCH] Switching our $emit('input' to $emit('update:value' to be in line with the new way v-model works --- pkg/harvester/components/DiskTags.vue | 4 ++-- .../detail/harvesterhci.io.host/HarvesterHostDisk.vue | 2 +- pkg/harvester/edit/harvesterhci.io.cloudtemplate.vue | 2 +- .../edit/harvesterhci.io.host/HarvesterDisk.vue | 2 +- .../edit/harvesterhci.io.host/HarvesterSeeder.vue | 2 +- pkg/harvester/edit/harvesterhci.io.host/index.vue | 2 +- pkg/harvester/edit/harvesterhci.io.keypair.vue | 2 +- pkg/harvester/edit/harvesterhci.io.logging.output.vue | 2 +- .../index.vue | 2 +- .../harvesterhci.io.networkattachmentdefinition.vue | 2 +- pkg/harvester/edit/harvesterhci.io.secret.vue | 2 +- pkg/harvester/edit/harvesterhci.io.storage/index.vue | 2 +- .../edit/harvesterhci.io.virtualmachineimage.vue | 2 +- .../harvesterhci.io.virtualmachinetemplateversion.vue | 2 +- pkg/harvester/edit/harvesterhci.io.volume.vue | 2 +- pkg/harvester/edit/harvesterhci.io.volumesnapshot.vue | 2 +- .../VirtualMachineAccessCredentials/index.vue | 2 +- .../VirtualMachineNetwork/index.vue | 2 +- .../edit/kubevirt.io.virtualmachine/index.vue | 2 +- .../loadbalancer.harvesterhci.io.ippool/Priority.vue | 2 +- .../PriorityRow.vue | 2 +- .../edit/loadbalancer.harvesterhci.io.ippool/Range.vue | 10 +++++----- .../loadbalancer.harvesterhci.io.ippool/Selector.vue | 2 +- .../edit/loadbalancer.harvesterhci.io.ippool/index.vue | 2 +- .../Listeners.vue | 2 +- .../index.vue | 2 +- pkg/harvester/edit/management.cattle.io.project.vue | 2 +- .../network.harvesterhci.io.clusternetwork/index.vue | 2 +- .../edit/network.harvesterhci.io.vlanconfig/index.vue | 2 +- 29 files changed, 34 insertions(+), 34 deletions(-) diff --git a/pkg/harvester/components/DiskTags.vue b/pkg/harvester/components/DiskTags.vue index fb07e4a9..b86c593b 100644 --- a/pkg/harvester/components/DiskTags.vue +++ b/pkg/harvester/components/DiskTags.vue @@ -92,7 +92,7 @@ export default { confirmAdd() { if (this.inputValue && !this.value.includes(this.inputValue)) { this.tags.push(this.inputValue); - this.$emit('input', this.tags); + this.$emit('update:value', this.tags); } this.inputValue = ''; @@ -101,7 +101,7 @@ export default { onRemoveTag(tag) { this.tags = this.tags.filter(v => v !== tag); - this.$emit('input', this.tags); + this.$emit('update:value', this.tags); }, } }; diff --git a/pkg/harvester/detail/harvesterhci.io.host/HarvesterHostDisk.vue b/pkg/harvester/detail/harvesterhci.io.host/HarvesterHostDisk.vue index 51f2d2bf..0061c291 100644 --- a/pkg/harvester/detail/harvesterhci.io.host/HarvesterHostDisk.vue +++ b/pkg/harvester/detail/harvesterhci.io.host/HarvesterHostDisk.vue @@ -73,7 +73,7 @@ export default { }, methods: { update() { - this.$emit('input', this.value); + this.$emit('update:value', this.value); }, canEditPath(value) { diff --git a/pkg/harvester/edit/harvesterhci.io.cloudtemplate.vue b/pkg/harvester/edit/harvesterhci.io.cloudtemplate.vue index 27aa1fc6..d8e615c7 100644 --- a/pkg/harvester/edit/harvesterhci.io.cloudtemplate.vue +++ b/pkg/harvester/edit/harvesterhci.io.cloudtemplate.vue @@ -79,7 +79,7 @@ export default { > diff --git a/pkg/harvester/edit/harvesterhci.io.host/HarvesterDisk.vue b/pkg/harvester/edit/harvesterhci.io.host/HarvesterDisk.vue index 4b671006..381cc459 100644 --- a/pkg/harvester/edit/harvesterhci.io.host/HarvesterDisk.vue +++ b/pkg/harvester/edit/harvesterhci.io.host/HarvesterDisk.vue @@ -144,7 +144,7 @@ export default { }, methods: { update() { - this.$emit('input', this.value); + this.$emit('update:value', this.value); }, }, }; diff --git a/pkg/harvester/edit/harvesterhci.io.host/HarvesterSeeder.vue b/pkg/harvester/edit/harvesterhci.io.host/HarvesterSeeder.vue index fab38e6c..e79d5b27 100644 --- a/pkg/harvester/edit/harvesterhci.io.host/HarvesterSeeder.vue +++ b/pkg/harvester/edit/harvesterhci.io.host/HarvesterSeeder.vue @@ -343,7 +343,7 @@ export default {