blob: ef9ab12658d8129f013851ab8661f9d580b28923 [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">
Ed Tanous9c729792024-03-23 14:56:34 -07008 {{ bmcTime }} {{ bmcTime }}
Dixsie Wolmers6a192d52021-09-02 15:26:58 -05009 </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';
Ed Tanousdbd37e02024-03-23 14:56:34 -070031import { useI18n } from 'vue-i18n';
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050032
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060033export default {
Derick Montague09e45cd2020-01-23 15:45:57 -060034 name: 'QuickLinks',
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060035 components: {
Derick Montague602e98a2020-10-21 16:20:00 -050036 IconArrowRight: ArrowRight16,
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060037 },
Yoshie Muranaka2f8bbbf2020-07-02 10:58:21 -070038 mixins: [BVToastMixin],
Ed Tanousdbd37e02024-03-23 14:56:34 -070039 data() {
40 return {
41 $t: useI18n().t,
42 };
43 },
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060044 computed: {
45 bmcTime() {
Derick Montaguee2fd1562019-12-20 13:26:53 -060046 return this.$store.getters['global/bmcTime'];
Yoshie Muranaka2f8bbbf2020-07-02 10:58:21 -070047 },
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060048 },
Derick Montague09e45cd2020-01-23 15:45:57 -060049 created() {
Dixsie Wolmers6a192d52021-09-02 15:26:58 -050050 Promise.all([this.$store.dispatch('global/getBmcTime')]).finally(() => {
Sukanya Pandeyedb8a772020-10-29 11:33:42 +053051 this.$root.$emit('overview-quicklinks-complete');
Yoshie Muranaka598bf7e2020-05-01 12:26:00 -070052 });
Yoshie Muranaka2f8bbbf2020-07-02 10:58:21 -070053 },
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060054};
55</script>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050056
57<style lang="scss" scoped>
Ed Tanous9c729792024-03-23 14:56:34 -070058@import '@/assets/styles/bmc/helpers/_index.scss';
59@import '@/assets/styles/bootstrap/_helpers.scss';
60
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050061dd,
62dl {
63 margin: 0;
64}
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050065</style>