From c05ff648da07d8e2221d67eac83b6c6581d371a0 Mon Sep 17 00:00:00 2001 From: Yoshie Muranaka Date: Wed, 26 Feb 2020 14:23:15 -0800 Subject: Add host boot settings to power operations page Added BootSettingsStore and component to handle changing boot source, boot override option and TPM required option. Signed-off-by: Yoshie Muranaka Change-Id: I885dd6008aceb34b319953a2e9b6416d848baf16 --- .../Control/ServerPowerOperations/BootSettings.vue | 148 +++++++++++++++++++++ .../ServerPowerOperations.vue | 20 ++- 2 files changed, 165 insertions(+), 3 deletions(-) create mode 100644 src/views/Control/ServerPowerOperations/BootSettings.vue (limited to 'src/views/Control') diff --git a/src/views/Control/ServerPowerOperations/BootSettings.vue b/src/views/Control/ServerPowerOperations/BootSettings.vue new file mode 100644 index 00000000..c912749f --- /dev/null +++ b/src/views/Control/ServerPowerOperations/BootSettings.vue @@ -0,0 +1,148 @@ + + + + + diff --git a/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue b/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue index c9b02b3e..e63d0732 100644 --- a/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue +++ b/src/views/Control/ServerPowerOperations/ServerPowerOperations.vue @@ -2,7 +2,7 @@ - + @@ -26,10 +26,20 @@ - + + + + + + + + {{ $t('pageServerPowerOperations.oneTimeBootWarning') }} + @@ -101,10 +111,11 @@ import PageTitle from '../../../components/Global/PageTitle'; import PageSection from '../../../components/Global/PageSection'; import BVToastMixin from '../../../components/Mixins/BVToastMixin'; +import BootSettings from './BootSettings'; export default { name: 'ServerPowerOperations', - components: { PageTitle, PageSection }, + components: { PageTitle, PageSection, BootSettings }, mixins: [BVToastMixin], data() { return { @@ -123,6 +134,9 @@ export default { }, isOperationInProgress() { return this.$store.getters['controls/isOperationInProgress']; + }, + oneTimeBootEnabled() { + return this.$store.getters['hostBootSettings/overrideEnabled']; } }, created() { -- cgit v1.2.3