Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 1 | <template> |
Dixsie Wolmers | 6a192d5 | 2021-09-02 15:26:58 -0500 | [diff] [blame] | 2 | <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 V | de23ea2 | 2024-07-11 15:19:46 +0530 | [diff] [blame^] | 8 | {{ $filters.formatDate(bmcTime) }} |
| 9 | {{ $filters.formatDate(bmcTime) }} |
Dixsie Wolmers | 6a192d5 | 2021-09-02 15:26:58 -0500 | [diff] [blame] | 10 | </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 Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 27 | </template> |
| 28 | |
| 29 | <script> |
Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 30 | import ArrowRight16 from '@carbon/icons-vue/es/arrow--right/16'; |
Yoshie Muranaka | 2f8bbbf | 2020-07-02 10:58:21 -0700 | [diff] [blame] | 31 | import BVToastMixin from '@/components/Mixins/BVToastMixin'; |
Ed Tanous | 883a0d5 | 2024-03-23 14:56:34 -0700 | [diff] [blame] | 32 | import { useI18n } from 'vue-i18n'; |
Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 33 | |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 34 | export default { |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 35 | name: 'QuickLinks', |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 36 | components: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 37 | IconArrowRight: ArrowRight16, |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 38 | }, |
Yoshie Muranaka | 2f8bbbf | 2020-07-02 10:58:21 -0700 | [diff] [blame] | 39 | mixins: [BVToastMixin], |
Ed Tanous | 883a0d5 | 2024-03-23 14:56:34 -0700 | [diff] [blame] | 40 | data() { |
| 41 | return { |
| 42 | $t: useI18n().t, |
| 43 | }; |
| 44 | }, |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 45 | computed: { |
| 46 | bmcTime() { |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 47 | return this.$store.getters['global/bmcTime']; |
Yoshie Muranaka | 2f8bbbf | 2020-07-02 10:58:21 -0700 | [diff] [blame] | 48 | }, |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 49 | }, |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 50 | created() { |
Dixsie Wolmers | 6a192d5 | 2021-09-02 15:26:58 -0500 | [diff] [blame] | 51 | Promise.all([this.$store.dispatch('global/getBmcTime')]).finally(() => { |
Sukanya Pandey | edb8a77 | 2020-10-29 11:33:42 +0530 | [diff] [blame] | 52 | this.$root.$emit('overview-quicklinks-complete'); |
Yoshie Muranaka | 598bf7e | 2020-05-01 12:26:00 -0700 | [diff] [blame] | 53 | }); |
Yoshie Muranaka | 2f8bbbf | 2020-07-02 10:58:21 -0700 | [diff] [blame] | 54 | }, |
Dixsie Wolmers | 97d86b3 | 2019-12-02 05:07:57 -0600 | [diff] [blame] | 55 | }; |
| 56 | </script> |
Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 57 | |
| 58 | <style lang="scss" scoped> |
Ed Tanous | 7d6b44c | 2024-03-23 14:56:34 -0700 | [diff] [blame] | 59 | @import '@/assets/styles/bmc/helpers/_index.scss'; |
| 60 | @import '@/assets/styles/bootstrap/_helpers.scss'; |
| 61 | |
Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 62 | dd, |
| 63 | dl { |
| 64 | margin: 0; |
| 65 | } |
Dixsie Wolmers | 537c6cb | 2020-01-06 17:22:25 -0500 | [diff] [blame] | 66 | </style> |