mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 13:11:43 +00:00
Remove remaining this.$set()
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
parent
118aaf16b7
commit
128d240ec6
@ -31,10 +31,10 @@ export default {
|
|||||||
toggleShow(idx) {
|
toggleShow(idx) {
|
||||||
const ssh = this.sshKeys[idx];
|
const ssh = this.sshKeys[idx];
|
||||||
|
|
||||||
this.$set(this.sshKeys, idx, {
|
this.sshKeys[idx] = {
|
||||||
...ssh,
|
...ssh,
|
||||||
showKey: !ssh.showKey
|
showKey: !ssh.showKey
|
||||||
});
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
getKeys() {
|
getKeys() {
|
||||||
|
|||||||
@ -76,9 +76,9 @@ export default {
|
|||||||
const name = `restore-${ this.backupName }-${ randomStr(5).toLowerCase() }`;
|
const name = `restore-${ this.backupName }-${ randomStr(5).toLowerCase() }`;
|
||||||
|
|
||||||
if (!this.backupName) {
|
if (!this.backupName) {
|
||||||
this.$set(this, 'errors', [
|
this['errors'] = [
|
||||||
this.t('harvester.modal.restore.message.backup')
|
this.t('harvester.modal.restore.message.backup')
|
||||||
]);
|
];
|
||||||
buttonCb(false);
|
buttonCb(false);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -156,10 +156,10 @@ export default {
|
|||||||
|
|
||||||
volumeEncryption: {
|
volumeEncryption: {
|
||||||
set(neu) {
|
set(neu) {
|
||||||
this.$set(this.value, 'parameters', {
|
this.value['parameters'] = {
|
||||||
...this.value.parameters,
|
...this.value.parameters,
|
||||||
encrypted: neu
|
encrypted: neu
|
||||||
});
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
get() {
|
get() {
|
||||||
@ -182,7 +182,7 @@ export default {
|
|||||||
set(selectedSecret) {
|
set(selectedSecret) {
|
||||||
const [namespace, name] = selectedSecret.split('/');
|
const [namespace, name] = selectedSecret.split('/');
|
||||||
|
|
||||||
this.$set(this.value, 'parameters', {
|
this.value['parameters'] = {
|
||||||
...this.value.parameters,
|
...this.value.parameters,
|
||||||
[CSI_PROVISIONER_SECRET_NAME]: name,
|
[CSI_PROVISIONER_SECRET_NAME]: name,
|
||||||
[CSI_NODE_PUBLISH_SECRET_NAME]: name,
|
[CSI_NODE_PUBLISH_SECRET_NAME]: name,
|
||||||
@ -190,7 +190,7 @@ export default {
|
|||||||
[CSI_PROVISIONER_SECRET_NAMESPACE]: namespace,
|
[CSI_PROVISIONER_SECRET_NAMESPACE]: namespace,
|
||||||
[CSI_NODE_PUBLISH_SECRET_NAMESPACE]: namespace,
|
[CSI_NODE_PUBLISH_SECRET_NAMESPACE]: namespace,
|
||||||
[CSI_NODE_STAGE_SECRET_NAMESPACE]: namespace
|
[CSI_NODE_STAGE_SECRET_NAMESPACE]: namespace
|
||||||
});
|
};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@ -198,14 +198,14 @@ export default {
|
|||||||
set(neu) {
|
set(neu) {
|
||||||
if (neu === DECRYPT || neu === ENCRYPT) {
|
if (neu === DECRYPT || neu === ENCRYPT) {
|
||||||
this.value.spec.sourceType = CLONE;
|
this.value.spec.sourceType = CLONE;
|
||||||
this.$set(this.value.spec, 'securityParameters', {
|
this.value.spec['securityParameters'] = {
|
||||||
cryptoOperation: neu,
|
cryptoOperation: neu,
|
||||||
sourceImageName: '',
|
sourceImageName: '',
|
||||||
sourceImageNamespace: this.value.metadata.namespace
|
sourceImageNamespace: this.value.metadata.namespace
|
||||||
});
|
};
|
||||||
this.selectedImage = null;
|
this.selectedImage = null;
|
||||||
} else {
|
} else {
|
||||||
this.$delete(this.value.spec, 'securityParameters');
|
delete this.value.spec['securityParameters'];
|
||||||
this.value.spec.sourceType = neu;
|
this.value.spec.sourceType = neu;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -112,7 +112,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
changeRows(filterRows) {
|
changeRows(filterRows) {
|
||||||
this.$set(this, 'filterRows', filterRows);
|
this['filterRows'] = filterRows;
|
||||||
},
|
},
|
||||||
|
|
||||||
sortGenerationFn() {
|
sortGenerationFn() {
|
||||||
|
|||||||
@ -1406,7 +1406,7 @@ export default {
|
|||||||
if (value) {
|
if (value) {
|
||||||
set(this.spec.template.spec.domain.cpu, 'dedicatedCpuPlacement', true);
|
set(this.spec.template.spec.domain.cpu, 'dedicatedCpuPlacement', true);
|
||||||
} else {
|
} else {
|
||||||
this.$delete(this.spec.template.spec.domain.cpu, 'dedicatedCpuPlacement');
|
delete this.spec.template.spec.domain.cpu['dedicatedCpuPlacement'];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user