blob: bc579b034cce1dbd3519e9ee56f152ffcd51e5c7 [file] [log] [blame]
Dixsie Wolmers97d86b32019-12-02 05:07:57 -06001<template>
Dixsie Wolmers6a192d52021-09-02 15:26:58 -05002 <b-card bg-variant="light" border-variant="light">
3 <b-row class="d-flex justify-content-between align-items-center">
4 <b-col sm="6" lg="9" class="mb-2 mt-2">
5 <dl>
6 <dt>{{ $t('pageOverview.bmcTime') }}</dt>
7 <dd v-if="bmcTime" data-test-id="overviewQuickLinks-text-bmcTime">
8 {{ bmcTime | formatDate }} {{ bmcTime | formatTime }}
9 </dd>
10 <dd v-else>--</dd>
11 </dl>
12 </b-col>
13 <b-col sm="6" lg="3" class="mb-2 mt-2">
14 <b-button
15 to="/operations/serial-over-lan"
16 variant="secondary"
17 data-test-id="overviewQuickLinks-button-solConsole"
18 class="d-flex justify-content-between align-items-center"
19 >
20 {{ $t('pageOverview.solConsole') }}
21 <icon-arrow-right />
22 </b-button>
23 </b-col>
24 </b-row>
25 </b-card>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060026</template>
27
28<script>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050029import ArrowRight16 from '@carbon/icons-vue/es/arrow--right/16';
Yoshie Muranaka2f8bbbf2020-07-02 10:58:21 -070030import BVToastMixin from '@/components/Mixins/BVToastMixin';
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050031
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060032export default {
Derick Montague09e45cd2020-01-23 15:45:57 -060033 name: 'QuickLinks',
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060034 components: {
Derick Montague602e98a2020-10-21 16:20:00 -050035 IconArrowRight: ArrowRight16,
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060036 },
Yoshie Muranaka2f8bbbf2020-07-02 10:58:21 -070037 mixins: [BVToastMixin],
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060038 computed: {
39 bmcTime() {
Derick Montaguee2fd1562019-12-20 13:26:53 -060040 return this.$store.getters['global/bmcTime'];
Yoshie Muranaka2f8bbbf2020-07-02 10:58:21 -070041 },
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060042 },
Derick Montague09e45cd2020-01-23 15:45:57 -060043 created() {
Dixsie Wolmers6a192d52021-09-02 15:26:58 -050044 Promise.all([this.$store.dispatch('global/getBmcTime')]).finally(() => {
Sukanya Pandeyedb8a772020-10-29 11:33:42 +053045 this.$root.$emit('overview-quicklinks-complete');
Yoshie Muranaka598bf7e2020-05-01 12:26:00 -070046 });
Yoshie Muranaka2f8bbbf2020-07-02 10:58:21 -070047 },
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060048};
49</script>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050050
51<style lang="scss" scoped>
52dd,
53dl {
54 margin: 0;
55}
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050056</style>