blob: 506de112addb40af0b6b9d25f4b83b098da8f224 [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">
Surya Vde23ea22024-07-11 15:19:46 +05308 {{ $filters.formatDate(bmcTime) }}
9 {{ $filters.formatDate(bmcTime) }}
Dixsie Wolmers6a192d52021-09-02 15:26:58 -050010 </dd>
11 <dd v-else>--</dd>
12 </dl>
13 </b-col>
14 <b-col sm="6" lg="3" class="mb-2 mt-2">
15 <b-button
16 to="/operations/serial-over-lan"
17 variant="secondary"
18 data-test-id="overviewQuickLinks-button-solConsole"
19 class="d-flex justify-content-between align-items-center"
20 >
21 {{ $t('pageOverview.solConsole') }}
22 <icon-arrow-right />
23 </b-button>
24 </b-col>
25 </b-row>
26 </b-card>
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060027</template>
28
29<script>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050030import ArrowRight16 from '@carbon/icons-vue/es/arrow--right/16';
Yoshie Muranaka2f8bbbf2020-07-02 10:58:21 -070031import BVToastMixin from '@/components/Mixins/BVToastMixin';
Ed Tanous883a0d52024-03-23 14:56:34 -070032import { useI18n } from 'vue-i18n';
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050033
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060034export default {
Derick Montague09e45cd2020-01-23 15:45:57 -060035 name: 'QuickLinks',
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060036 components: {
Derick Montague602e98a2020-10-21 16:20:00 -050037 IconArrowRight: ArrowRight16,
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060038 },
Yoshie Muranaka2f8bbbf2020-07-02 10:58:21 -070039 mixins: [BVToastMixin],
Ed Tanous883a0d52024-03-23 14:56:34 -070040 data() {
41 return {
42 $t: useI18n().t,
43 };
44 },
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060045 computed: {
46 bmcTime() {
Derick Montaguee2fd1562019-12-20 13:26:53 -060047 return this.$store.getters['global/bmcTime'];
Yoshie Muranaka2f8bbbf2020-07-02 10:58:21 -070048 },
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060049 },
Derick Montague09e45cd2020-01-23 15:45:57 -060050 created() {
Dixsie Wolmers6a192d52021-09-02 15:26:58 -050051 Promise.all([this.$store.dispatch('global/getBmcTime')]).finally(() => {
Sukanya Pandeyedb8a772020-10-29 11:33:42 +053052 this.$root.$emit('overview-quicklinks-complete');
Yoshie Muranaka598bf7e2020-05-01 12:26:00 -070053 });
Yoshie Muranaka2f8bbbf2020-07-02 10:58:21 -070054 },
Dixsie Wolmers97d86b32019-12-02 05:07:57 -060055};
56</script>
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050057
58<style lang="scss" scoped>
Ed Tanous7d6b44c2024-03-23 14:56:34 -070059@import '@/assets/styles/bmc/helpers/_index.scss';
60@import '@/assets/styles/bootstrap/_helpers.scss';
61
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050062dd,
63dl {
64 margin: 0;
65}
Dixsie Wolmers537c6cb2020-01-06 17:22:25 -050066</style>