From 8047ae3d83ba0718fb7a42907036157e5c680b85 Mon Sep 17 00:00:00 2001
From: "Andrey V.Kosteltsev" <AKosteltsev@IBS.RU>
Date: Mon, 4 Jul 2022 23:59:32 +0300
Subject: IBS: _sila UI theme

---
 src/views/_sila/Overview/OverviewQuickLinks.vue | 56 +++++++++++++++++++++++++
 1 file changed, 56 insertions(+)
 create mode 100644 src/views/_sila/Overview/OverviewQuickLinks.vue

(limited to 'src/views/_sila/Overview/OverviewQuickLinks.vue')

diff --git a/src/views/_sila/Overview/OverviewQuickLinks.vue b/src/views/_sila/Overview/OverviewQuickLinks.vue
new file mode 100644
index 00000000..bc579b03
--- /dev/null
+++ b/src/views/_sila/Overview/OverviewQuickLinks.vue
@@ -0,0 +1,56 @@
+<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">
+            {{ bmcTime | formatDate }} {{ bmcTime | formatTime }}
+          </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';
+
+export default {
+  name: 'QuickLinks',
+  components: {
+    IconArrowRight: ArrowRight16,
+  },
+  mixins: [BVToastMixin],
+  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>
+dd,
+dl {
+  margin: 0;
+}
+</style>
-- 
cgit v1.2.3

