1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
<template>
<page-section :section-title="$t('BMC.ControlTitle')">
<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"
/> -->
<b-link @click="redirectNetworkParametrs">{{ $t('BMC.Parametrs') }}</b-link>
<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" /> -->
<b-link>{{ $t('BMC.ReloadMicrocodeBios') }}</b-link>
</b-button>
</div>
</page-section>
</template>
<script>
import SettingsImportPopup from './SettingsImportPopup';
import PageSection from '@/components/_sila/Global/PageSection';
// import Popover from '@/components/_sila/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>
|