From c4d70da69a3c86f8c07ccdb0f09b755dd99b2155 Mon Sep 17 00:00:00 2001
From: Maksim Zakharov <m.zakharov@IBS.RU>
Date: Tue, 24 May 2022 10:04:19 +0300
Subject: Add global popovers. Add pages: pci, adapters, raid, drivers, virtual
 drivers. Fix: analytical pannel, bmc-settings popovers. fix global styles

---
 .../Specification/PowerStaticPage.vue              | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

(limited to 'src/views/PowerSupplies/Specification/PowerStaticPage.vue')

diff --git a/src/views/PowerSupplies/Specification/PowerStaticPage.vue b/src/views/PowerSupplies/Specification/PowerStaticPage.vue
index 463e9ea2..8ff1aa1b 100644
--- a/src/views/PowerSupplies/Specification/PowerStaticPage.vue
+++ b/src/views/PowerSupplies/Specification/PowerStaticPage.vue
@@ -8,10 +8,12 @@
       <page-section class="bootstrap-table__section info_section">
         <span class="bold-16px">{{ $t('pageInventory.powerSources') }}</span>
       </page-section>
-      <power-switch
-        :slots="memorySlots"
-        :switch-memory="switchMemorySlot"
-        :current-memory="currentMemorySlot"
+      <data-tabs
+        :slots="sourceSlots"
+        :switch-tab="switchSourceSlot"
+        :current-tab="currentSourceSlot"
+        :slot-width="100"
+        :slider-width="68"
       />
       <page-section class="bootstrap-table__section">
         <b-table
@@ -51,14 +53,14 @@
 <script>
 import PageTitle from '@/components/Global/PageTitle';
 import PageSection from '@/components/Global/PageSection';
-import PowerSwitch from './PowerSwitch';
+import DataTabs from '@/components/Global/SilaComponents/DataTabs';
 
 export default {
-  components: { PageTitle, PageSection, PowerSwitch },
+  components: { PageTitle, PageSection, DataTabs },
   data() {
     return {
-      currentMemorySlot: 1,
-      memorySlots: [
+      currentSourceSlot: 1,
+      sourceSlots: [
         { id: 1, name: 'Источник 1' },
         { id: 2, name: 'Источник 2' },
         { id: 3, name: 'Источник 3' },
@@ -127,8 +129,8 @@ export default {
     };
   },
   methods: {
-    switchMemorySlot(period) {
-      this.currentMemorySlot = period;
+    switchSourceSlot(period) {
+      this.currentSourceSlot = period;
     },
   },
 };
-- 
cgit v1.2.3

