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
@@ -1,4 +1,3 @@
import Vue from 'vue';
import { clone } from '@shell/utils/object';
import HarvesterResource from '@pkg/harvester/models/harvester';
import { HCI } from '@pkg/harvester/types';
@@ -14,8 +13,8 @@ export default class HciLB extends HarvesterResource {
spec.selector = spec.selector || {};
spec.selector.network = spec.selector.network || '';
Vue.set(this, 'spec', spec);
Vue.set(this, 'metadata', meta);
this['spec'] = spec;
this['metadata'] = meta;
}
get customValidationRules() {