diff options
-rw-r--r-- | src/views/Operations/ServerPowerOperations/BootSettings.vue | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/views/Operations/ServerPowerOperations/BootSettings.vue b/src/views/Operations/ServerPowerOperations/BootSettings.vue index efd8d347..4896286b 100644 --- a/src/views/Operations/ServerPowerOperations/BootSettings.vue +++ b/src/views/Operations/ServerPowerOperations/BootSettings.vue @@ -104,20 +104,12 @@ export default { methods: { handleSubmit() { this.startLoader(); - const bootSettingsChanged = - this.$v.form.bootOption.$dirty || this.$v.form.oneTimeBoot.$dirty; const tpmPolicyChanged = this.$v.form.tpmPolicyOn.$dirty; let settings; - let bootSource = null; - let overrideEnabled = null; + let bootSource = this.form.bootOption; + let overrideEnabled = this.form.oneTimeBoot; let tpmEnabled = null; - if (bootSettingsChanged) { - // If bootSource or overrideEnabled changed get - // both current values to send with request - bootSource = this.form.bootOption; - overrideEnabled = this.form.oneTimeBoot; - } if (tpmPolicyChanged) tpmEnabled = this.form.tpmPolicyOn; settings = { bootSource, overrideEnabled, tpmEnabled }; |