From 4d48e754478b3d1e3e8a280584fb3321c0c7322e Mon Sep 17 00:00:00 2001 From: Yi-Ya Chen Date: Thu, 2 Jan 2025 11:10:01 +0800 Subject: [PATCH] refactor: rewrite with emit pattern Signed-off-by: Yi-Ya Chen --- .../harvesterhci.io.virtualmachinetemplateversion.vue | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/pkg/harvester/edit/harvesterhci.io.virtualmachinetemplateversion.vue b/pkg/harvester/edit/harvesterhci.io.virtualmachinetemplateversion.vue index 3618545e..794f8c8b 100644 --- a/pkg/harvester/edit/harvesterhci.io.virtualmachinetemplateversion.vue +++ b/pkg/harvester/edit/harvesterhci.io.virtualmachinetemplateversion.vue @@ -29,7 +29,7 @@ import SSHKey from './kubevirt.io.virtualmachine/VirtualMachineSSHKey'; export default { name: 'HarvesterEditVMTemplate', - emits: ['update:value'], + emits: ['update:templateValue'], components: { Tab, @@ -206,11 +206,6 @@ export default { this.$refs.yamlEditor?.refresh(); } }, - - updateNameNsDescriptionValue(newValue) { - this.templateValue.metadata.name = newValue.metadata.name; - this.templateValue.metadata.namespace = newValue.metadata.namespace; - } }, }; @@ -227,11 +222,11 @@ export default { @finish="saveVMT" >