mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-04 13:16:05 +08:00
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:
@@ -56,12 +56,12 @@ export default {
|
||||
|
||||
const defaultStorage = this.$store.getters[`${ inStore }/all`](STORAGE_CLASS).find(s => s.isDefault);
|
||||
|
||||
this.$set(this, 'storageClassName', this.storageClassName || defaultStorage?.metadata?.name || 'longhorn');
|
||||
this['storageClassName'] = this.storageClassName || defaultStorage?.metadata?.name || 'longhorn';
|
||||
},
|
||||
|
||||
data() {
|
||||
if ( !this.value.spec ) {
|
||||
this.$set(this.value, 'spec', { sourceType: DOWNLOAD });
|
||||
this.value['spec'] = { sourceType: DOWNLOAD };
|
||||
}
|
||||
|
||||
if (!this.value.metadata.name) {
|
||||
@@ -130,7 +130,7 @@ export default {
|
||||
},
|
||||
|
||||
'value.spec.sourceType'() {
|
||||
this.$set(this, 'file', null);
|
||||
this['file'] = null;
|
||||
this.url = '';
|
||||
|
||||
if (this.$refs?.file?.value) {
|
||||
|
||||
Reference in New Issue
Block a user