mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +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:
+1
-1
@@ -73,7 +73,7 @@ export default {
|
||||
|
||||
selectedUser(val, old) {
|
||||
if ( val.includes(_NEW)) {
|
||||
this.$set(this, 'selectedUser', old);
|
||||
this['selectedUser'] = old;
|
||||
this.update();
|
||||
this.show();
|
||||
}
|
||||
|
||||
+1
-1
@@ -49,7 +49,7 @@ export default {
|
||||
},
|
||||
|
||||
updateUser(neu) {
|
||||
this.$set(this.value, 'username', neu);
|
||||
this.value['username'] = neu;
|
||||
this.update();
|
||||
},
|
||||
|
||||
|
||||
+2
-2
@@ -40,12 +40,12 @@ export default {
|
||||
},
|
||||
|
||||
updateUser(neu) {
|
||||
this.$set(this.value, 'users', neu);
|
||||
this.value['users'] = neu;
|
||||
this.update();
|
||||
},
|
||||
|
||||
updateSSH(neu) {
|
||||
this.$set(this.value, 'sshkeys', neu);
|
||||
this.value['sshkeys'] = neu;
|
||||
this.update();
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user