blob: 506de112addb40af0b6b9d25f4b83b098da8f224 [file] [log] [blame]
<template>
<b-card bg-variant="light" border-variant="light">
<b-row class="d-flex justify-content-between align-items-center">
<b-col sm="6" lg="9" class="mb-2 mt-2">
<dl>
<dt>{{ $t('pageOverview.bmcTime') }}</dt>
<dd v-if="bmcTime" data-test-id="overviewQuickLinks-text-bmcTime">
{{ $filters.formatDate(bmcTime) }}
{{ $filters.formatDate(bmcTime) }}
</dd>
<dd v-else>--</dd>
</dl>
</b-col>
<b-col sm="6" lg="3" class="mb-2 mt-2">
<b-button
to="/operations/serial-over-lan"
variant="secondary"
data-test-id="overviewQuickLinks-button-solConsole"
class="d-flex justify-content-between align-items-center"
>
{{ $t('pageOverview.solConsole') }}
<icon-arrow-right />
</b-button>
</b-col>
</b-row>
</b-card>
</template>
<script>
import ArrowRight16 from '@carbon/icons-vue/es/arrow--right/16';
import BVToastMixin from '@/components/Mixins/BVToastMixin';
import { useI18n } from 'vue-i18n';
export default {
name: 'QuickLinks',
components: {
IconArrowRight: ArrowRight16,
},
mixins: [BVToastMixin],
data() {
return {
$t: useI18n().t,
};
},
computed: {
bmcTime() {
return this.$store.getters['global/bmcTime'];
},
},
created() {
Promise.all([this.$store.dispatch('global/getBmcTime')]).finally(() => {
this.$root.$emit('overview-quicklinks-complete');
});
},
};
</script>
<style lang="scss" scoped>
@import '@/assets/styles/bmc/helpers/_index.scss';
@import '@/assets/styles/bootstrap/_helpers.scss';
dd,
dl {
margin: 0;
}
</style>