diff options
Diffstat (limited to 'src/views/BMC/Configuration/BMCConfigurationControl.vue')
-rw-r--r-- | src/views/BMC/Configuration/BMCConfigurationControl.vue | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/views/BMC/Configuration/BMCConfigurationControl.vue b/src/views/BMC/Configuration/BMCConfigurationControl.vue index 0eb8bfc9..2cc259a7 100644 --- a/src/views/BMC/Configuration/BMCConfigurationControl.vue +++ b/src/views/BMC/Configuration/BMCConfigurationControl.vue @@ -10,6 +10,7 @@ description="BMC.ReloadBmc" popup="BMC.ReloadBmc_popup" button="BMC.ReloadBmc" + :action="rebootBmc" /> <settings-import-popup id="popover-reactive-2" @@ -53,13 +54,14 @@ import SettingsImportPopup from './SettingsImportPopup'; import PageSection from '@/components/Global/PageSection'; import Popover from '@/components/Global/Popover'; - +import BVToastMixin from '@/components/Mixins/BVToastMixin'; export default { components: { PageSection, Popover, SettingsImportPopup, }, + mixins: [BVToastMixin], data() { return { timeOption: 'resetBios', @@ -80,6 +82,12 @@ export default { redirectNetworkParametrs() { this.$router.push('/network-parametrs'); }, + rebootBmc() { + this.$store + .dispatch('controls/rebootBmc') + .then((message) => this.successToast(message)) + .catch(({ message }) => this.errorToast(message)); + }, }, }; </script> |