blob: d9d86ca83820c3dfd6733f67e7b8946ef8527a98 [file] [log] [blame]
Dixsie Wolmers97d86b32019-12-02 05:07:57 -06001<template>
Gunnar Millsf70db212020-01-28 20:21:37 -06002 <b-list-group>
3 <!-- TODO: add event log priority events count -->
4 <b-list-group-item>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -06005 <dl>
6 <dt>BMC time</dt>
Gunnar Millsf70db212020-01-28 20:21:37 -06007 <dd>{{ bmcTime | date('MMM, DD YYYY HH:MM:SS A ZZ') }}</dd>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -06008 </dl>
Gunnar Millsf70db212020-01-28 20:21:37 -06009 </b-list-group-item>
10 <b-list-group-item>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060011 <!-- TODO: add toggle LED on/off funtionality -->
Gunnar Millsf70db212020-01-28 20:21:37 -060012 <b-form-checkbox v-model="serverLedChecked" name="check-button" switch>
13 Turn
14 <span v-if="!serverLedChecked">on</span>
15 <span v-else>off</span> server LED
16 </b-form-checkbox>
17 </b-list-group-item>
18 <b-list-group-item
19 href="#"
20 class="d-flex justify-content-between align-items-center"
21 >
Dixsie Wolmers256f5b92020-01-06 17:22:25 -050022 <!-- TODO: link to SOL -->
Gunnar Millsf70db212020-01-28 20:21:37 -060023 <span>Serial over LAN console</span>
Derick Montague09e45cd2020-01-23 15:45:57 -060024 <chevron-right16 />
Gunnar Millsf70db212020-01-28 20:21:37 -060025 </b-list-group-item>
26 <b-list-group-item
27 href="#"
28 class="d-flex justify-content-between align-items-center"
29 >
30 <!-- TODO: link to network settings -->
31 <span>Edit network settings</span>
Derick Montague09e45cd2020-01-23 15:45:57 -060032 <chevron-right16 />
Gunnar Millsf70db212020-01-28 20:21:37 -060033 </b-list-group-item>
34 </b-list-group>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060035</template>
36
37<script>
Gunnar Millsf70db212020-01-28 20:21:37 -060038import ChevronRight16 from '@carbon/icons-vue/es/chevron--right/16';
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060039export default {
Derick Montague09e45cd2020-01-23 15:45:57 -060040 name: 'QuickLinks',
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060041 components: {
Gunnar Millsf70db212020-01-28 20:21:37 -060042 ChevronRight16
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060043 },
Derick Montague09e45cd2020-01-23 15:45:57 -060044 data() {
45 return {
46 serverLEDChecked: false
47 };
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060048 },
49 computed: {
50 bmcTime() {
Derick Montaguee2fd1562019-12-20 13:26:53 -060051 return this.$store.getters['global/bmcTime'];
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060052 }
53 },
Derick Montague09e45cd2020-01-23 15:45:57 -060054 created() {
55 this.getBmcTime();
56 },
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060057 methods: {
58 getBmcTime() {
Derick Montaguee2fd1562019-12-20 13:26:53 -060059 this.$store.dispatch('global/getBmcTime');
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060060 }
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060061 }
62};
63</script>