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
@@ -52,9 +52,9 @@ export default {
if ( newCloudCred ) {
this.value.metadata.namespace = DEFAULT_WORKSPACE;
this.$set(this.value.metadata, 'name', '');
this.value.metadata['name'] = '';
this.$set(this.value, 'data', {});
this.value['data'] = {};
}
const secretTypes = [
@@ -77,7 +77,7 @@ export default {
});
if ( this.mode === _CREATE ) {
this.$set(this.value, '_type', TYPES.OPAQUE);
this.value['_type'] = TYPES.OPAQUE;
}
return {
@@ -212,7 +212,7 @@ export default {
selectCustomType(type) {
if (type !== 'custom') {
this.$set(this.value, '_type', type);
this.value['_type'] = type;
}
}
},