summaryrefslogtreecommitdiff
path: root/src/views/_sila/BMC/Configuration/BMCConfigurationControl.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/_sila/BMC/Configuration/BMCConfigurationControl.vue')
-rw-r--r--src/views/_sila/BMC/Configuration/BMCConfigurationControl.vue121
1 files changed, 121 insertions, 0 deletions
diff --git a/src/views/_sila/BMC/Configuration/BMCConfigurationControl.vue b/src/views/_sila/BMC/Configuration/BMCConfigurationControl.vue
new file mode 100644
index 00000000..e75b5f7d
--- /dev/null
+++ b/src/views/_sila/BMC/Configuration/BMCConfigurationControl.vue
@@ -0,0 +1,121 @@
+<template>
+ <page-section class="bmc-control-section">
+ <div class="bmc-control__table">
+ <div class="bmc-control__table__cell">
+ <div>
+ <span class="semi-bold-12px"> {{ $t('BMC.ControlBmc') }} </span>
+ </div>
+ <popover
+ id="popover-reactive-1"
+ description="BMC.ReloadBmc"
+ popup="BMC.ReloadBmc_popup"
+ button="BMC.ReloadBmc"
+ :action="rebootBmc"
+ />
+ <settings-import-popup
+ id="popover-reactive-2"
+ description="BMC.ExportImport"
+ popup="BMC.ExportImport"
+ button="BMC.ExportImport_button"
+ />
+ <div>
+ <span
+ class="regular-12px underline"
+ @click="redirectNetworkParametrs"
+ >{{ $t('BMC.Parametrs') }}</span
+ >
+ </div>
+ </div>
+
+ <div class="bmc-control__table__cell">
+ <div>
+ <span class="semi-bold-12px">{{ $t('BMC.microcode') }}</span>
+ </div>
+ <b-button variant="unstyled" class="p-0" @click="redirectUpdateBmc">
+ <img src="@/assets/images/icon-reload-red.svg" />
+ <span style="margin-left: 5px" class="regular-12px red">{{
+ $t('BMC.ReloadMicrocodeBios')
+ }}</span>
+ </b-button>
+ </div>
+ </div>
+ </page-section>
+</template>
+
+<script>
+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',
+ picked: '',
+ options: [
+ { text: 'Toggle this custom radio', value: 'first' },
+ { text: 'Or toggle this other custom radio', value: 'second' },
+ ],
+ progress1: {
+ value: 90,
+ },
+ progress2: {
+ value: null,
+ },
+ };
+ },
+ methods: {
+ redirectNetworkParametrs() {
+ this.$router.push('/network-parametrs');
+ },
+ redirectUpdateBmc() {
+ this.$router.push('/operations/firmware');
+ },
+ rebootBmc() {
+ this.$store
+ .dispatch('controls/rebootBmc')
+ .then((message) => this.successToast(message))
+ .catch(({ message }) => this.errorToast(message));
+ },
+ },
+};
+</script>
+<style lang="scss" scoped>
+a {
+ list-style-type: none;
+}
+
+.bmc-control-section {
+ position: relative;
+ margin: 16px 2rem 2rem;
+ width: 70%;
+}
+
+.bmc-control__table {
+ display: flex;
+ flex-flow: row nowrap;
+ justify-content: space-between;
+ width: 85%;
+}
+
+.bmc-control__table__cell {
+ display: flex;
+ flex-flow: column nowrap;
+ align-items: flex-start;
+ row-gap: 6px;
+}
+
+.semi-bold-12px {
+ display: inline-block;
+}
+
+label {
+ padding-top: 5px;
+}
+</style>