From 5525b2b9a02e92a405fb1ed4b890b5680af51ce3 Mon Sep 17 00:00:00 2001 From: Cody Jackson Date: Fri, 13 Sep 2024 16:51:00 -0700 Subject: [PATCH] Doing a partial fix of VirtualMachine volume Upgraded the vuedraggable dependency and fixed most of the issues I found. It appears to be working with a console warning. We likely want to switch to a different better supported library. --- package.json | 5 +++-- .../VirtualMachineVolume/index.vue | 15 ++++++++------- yarn.lock | 12 ++++++++++++ 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 14416cff..62be0aa0 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "cache-loader": "^4.1.0", "color": "4.2.3", "ip": "2.0.1", - "node-polyfill-webpack-plugin": "^3.0.0" + "node-polyfill-webpack-plugin": "^3.0.0", + "vuedraggable": "^4.1.0" }, "resolutions": { "@types/node": "~20.10.0", @@ -38,4 +39,4 @@ "publish-pkgs": "./node_modules/@rancher/shell/scripts/extension/publish", "parse-tag-name": "./node_modules/@rancher/shell/scripts/extension/parse-tag-name" } -} \ No newline at end of file +} diff --git a/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachineVolume/index.vue b/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachineVolume/index.vue index 0dd2ec3c..81458c5f 100644 --- a/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachineVolume/index.vue +++ b/pkg/harvester/edit/kubevirt.io.virtualmachine/VirtualMachineVolume/index.vue @@ -233,7 +233,7 @@ export default { }, update() { - this.$emit('input', this.rows); + this.$emit('update:value', this.rows); }, deleteVolume() { @@ -267,13 +267,14 @@ export default { label-key="harvester.virtualMachine.volume.dragTip" /> - -
+ =0.6.2 <2.0.0", source-map-js@^1.0.1, source-map-js@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.0.tgz#16b809c162517b5b8c3e7dcd315a2a5c2612b2af" @@ -13734,6 +13739,13 @@ vuedraggable@2.24.3: dependencies: sortablejs "1.10.2" +vuedraggable@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/vuedraggable/-/vuedraggable-4.1.0.tgz#edece68adb8a4d9e06accff9dfc9040e66852270" + integrity sha512-FU5HCWBmsf20GpP3eudURW3WdWTKIbEIQxh9/8GE806hydR9qZqRRxRE3RjqX7PkuLuMQG/A7n3cfj9rCEchww== + dependencies: + sortablejs "1.14.0" + vuex@~4.0.0: version "4.0.2" resolved "https://registry.yarnpkg.com/vuex/-/vuex-4.0.2.tgz#f896dbd5bf2a0e963f00c67e9b610de749ccacc9"