summaryrefslogtreecommitdiff
path: root/src/views/Overview/OverviewQuickLinks.vue
blob: d9d86ca83820c3dfd6733f67e7b8946ef8527a98 (plain)
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
<template>
  <b-list-group>
    <!-- TODO: add event log priority events count -->
    <b-list-group-item>
      <dl>
        <dt>BMC time</dt>
        <dd>{{ bmcTime | date('MMM, DD YYYY HH:MM:SS A ZZ') }}</dd>
      </dl>
    </b-list-group-item>
    <b-list-group-item>
      <!-- TODO: add toggle LED on/off funtionality -->
      <b-form-checkbox v-model="serverLedChecked" name="check-button" switch>
        Turn
        <span v-if="!serverLedChecked">on</span>
        <span v-else>off</span> server LED
      </b-form-checkbox>
    </b-list-group-item>
    <b-list-group-item
      href="#"
      class="d-flex justify-content-between align-items-center"
    >
      <!-- TODO: link to SOL -->
      <span>Serial over LAN console</span>
      <chevron-right16 />
    </b-list-group-item>
    <b-list-group-item
      href="#"
      class="d-flex justify-content-between align-items-center"
    >
      <!-- TODO: link to network settings -->
      <span>Edit network settings</span>
      <chevron-right16 />
    </b-list-group-item>
  </b-list-group>
</template>

<script>
import ChevronRight16 from '@carbon/icons-vue/es/chevron--right/16';
export default {
  name: 'QuickLinks',
  components: {
    ChevronRight16
  },
  data() {
    return {
      serverLEDChecked: false
    };
  },
  computed: {
    bmcTime() {
      return this.$store.getters['global/bmcTime'];
    }
  },
  created() {
    this.getBmcTime();
  },
  methods: {
    getBmcTime() {
      this.$store.dispatch('global/getBmcTime');
    }
  }
};
</script>