diff options
author | Derick Montague <derick.montague@ibm.com> | 2020-10-22 00:20:00 +0300 |
---|---|---|
committer | Derick Montague <derick.montague@ibm.com> | 2020-11-03 19:47:51 +0300 |
commit | 602e98aa32f82fd3b0c3d250c7cc1f8da971db24 (patch) | |
tree | 2894194868ff987718a8b19f112b8106d662aa83 /src/views/Control/ServerPowerOperations/BootSettings.vue | |
parent | 47165201c79b3d2c4ccc62a49a9c75d038ee8fe6 (diff) | |
download | webui-vue-602e98aa32f82fd3b0c3d250c7cc1f8da971db24.tar.xz |
Update linting packages to use latest
- 99% of changes were small syntax changes that were changed by the
lint command. There were a couple of small manual changes to meet the
property order patterns established as part of the vue:recommended
guidelines.
There are rules that were set from errors to warnings and new stories
are being opened to address those issues.
Testing:
- Successfully ran npm run serve
- Successfully ran npm run lint
- Verified functionality works as expected, e.g. success and failure use cases
- Resolved any JavaScript errors thrown to the console
Signed-off-by: Derick Montague <derick.montague@ibm.com>
Change-Id: Ie082f31c73ccbe8a60afa8f88a9ef6dbf33d9fd2
Diffstat (limited to 'src/views/Control/ServerPowerOperations/BootSettings.vue')
-rw-r--r-- | src/views/Control/ServerPowerOperations/BootSettings.vue | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/views/Control/ServerPowerOperations/BootSettings.vue b/src/views/Control/ServerPowerOperations/BootSettings.vue index 3435f1c6..a94da0c3 100644 --- a/src/views/Control/ServerPowerOperations/BootSettings.vue +++ b/src/views/Control/ServerPowerOperations/BootSettings.vue @@ -62,8 +62,8 @@ export default { form: { bootOption: this.$store.getters['hostBootSettings/bootSource'], oneTimeBoot: this.$store.getters['hostBootSettings/overrideEnabled'], - tpmPolicyOn: this.$store.getters['hostBootSettings/tpmEnabled'] - } + tpmPolicyOn: this.$store.getters['hostBootSettings/tpmEnabled'], + }, }; }, computed: { @@ -71,19 +71,19 @@ export default { 'bootSourceOptions', 'bootSource', 'overrideEnabled', - 'tpmEnabled' - ]) + 'tpmEnabled', + ]), }, watch: { - bootSource: function(value) { + bootSource: function (value) { this.form.bootOption = value; }, - overrideEnabled: function(value) { + overrideEnabled: function (value) { this.form.oneTimeBoot = value; }, - tpmEnabled: function(value) { + tpmEnabled: function (value) { this.form.tpmPolicyOn = value; - } + }, }, validations: { // Empty validations to leverage vuelidate form states @@ -91,13 +91,13 @@ export default { form: { bootOption: {}, oneTimeBoot: {}, - tpmPolicyOn: {} - } + tpmPolicyOn: {}, + }, }, created() { Promise.all([ this.$store.dispatch('hostBootSettings/getBootSettings'), - this.$store.dispatch('hostBootSettings/getTpmPolicy') + this.$store.dispatch('hostBootSettings/getTpmPolicy'), ]).finally(() => this.$root.$emit('serverPowerOperations::bootSettings::complete') ); @@ -124,7 +124,7 @@ export default { this.$store .dispatch('hostBootSettings/saveSettings', settings) - .then(message => this.successToast(message)) + .then((message) => this.successToast(message)) .catch(({ message }) => this.errorToast(message)) .finally(() => { this.$v.form.$reset(); @@ -135,7 +135,7 @@ export default { this.$v.form.bootOption.$touch(); // Disable one time boot if selected boot option is 'None' if (selectedOption === 'None') this.form.oneTimeBoot = false; - } - } + }, + }, }; </script> |