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
@@ -104,7 +104,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-cluster-network="allClusterNetwork" />
</div>
@@ -87,7 +87,7 @@ export default {
}
if (!this.value._type) {
this.$set(this.value, '_type', TYPES.OPAQUE);
this.value['_type'] = TYPES.OPAQUE;
}
return {
@@ -58,7 +58,7 @@ export default {
};
});
this.$set(this, 'sshKeys', out);
this['sshKeys'] = out;
}
}
};
@@ -146,7 +146,7 @@ export default {
handler(neu) {
const diskRows = this.getDiskRows(neu);
this.$set(this, 'diskRows', diskRows);
this['diskRows'] = diskRows;
},
deep: true
}