Vue migration - remove Vuew.set & this.$set; add vue-migrate script

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
Francesco Torchia
2024-10-23 17:00:48 +02:00
parent c983ed8384
commit ea12a81174
85 changed files with 938 additions and 256 deletions
@@ -39,8 +39,8 @@ export default {
methods: {
changeRows(filterRows, searchLabels) {
this.$set(this, 'filterRows', filterRows);
this.$set(this, 'searchLabels', searchLabels);
this['filterRows'] = filterRows;
this['searchLabels'] = searchLabels;
},
sortGenerationFn() {
@@ -161,7 +161,7 @@ export default {
await this.$store.dispatch(`${ inStore }/findAll`, { type: HCI.VMIM });
this.$set(this, 'allVMIs', vmis);
this['allVMIs'] = vmis;
}
};
</script>
@@ -179,7 +179,7 @@ export default {
key-field="_key"
v-on="$listeners"
>
<template slot="cell:state" slot-scope="scope" class="state-col">
<template slot="cell:state" slot-scope="scope">
<div class="state">
<HarvesterVmState class="vmstate" :row="scope.row" :all-node-network="allNodeNetworks" :all-cluster-network="allClusterNetworks" />
</div>