From c4d70da69a3c86f8c07ccdb0f09b755dd99b2155 Mon Sep 17 00:00:00 2001 From: Maksim Zakharov 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 --- .../Network/InventoryIPv4Settings.vue | 76 ++++++++++++---------- .../Network/InventoryIPv6Settings.vue | 4 -- 2 files changed, 43 insertions(+), 37 deletions(-) (limited to 'src/views/SystemDescription/Network') diff --git a/src/views/SystemDescription/Network/InventoryIPv4Settings.vue b/src/views/SystemDescription/Network/InventoryIPv4Settings.vue index b96c9251..94845854 100644 --- a/src/views/SystemDescription/Network/InventoryIPv4Settings.vue +++ b/src/views/SystemDescription/Network/InventoryIPv4Settings.vue @@ -9,7 +9,32 @@ :empty-text="$t('global.table.emptyMessage')" > @@ -75,18 +77,20 @@ import DataFormatterMixin from '@/components/Mixins/DataFormatterMixin'; import BVToastMixin from '@/components/Mixins/BVToastMixin'; import PageSection from '@/components/Global/PageSection'; import iconChevron from '@carbon/icons-vue/es/chevron--down/16'; +import TwoChiocePopover from '@/components/Global/SilaComponents/TwoChiocePopover'; import TableRowExpandMixin, { expandRowLabel, } from '@/components/Mixins/TableRowExpandMixin'; export default { - components: { PageSection }, + components: { PageSection, TwoChiocePopover }, mixins: [BVToastMixin, TableRowExpandMixin, DataFormatterMixin], data() { return { selectedCell: null, isActive: false, isIpInvalid: false, + chosenOption: 'Выключен', fields: [ { key: 'param', @@ -174,6 +178,14 @@ export default { ipCheck ); }, + setOn() { + this.chosenOption = 'Включен'; + this.systems[0].value = true; + }, + setOff() { + this.chosenOption = 'Выключен'; + this.systems[0].value = false; + }, DHCPoff() { this.systems[0].value = false; this.isActive = false; @@ -196,10 +208,8 @@ export default { .system-network-table__icon-col { max-width: 20%; - margin: 0 5px 0 auto !important; } - diff --git a/src/views/SystemDescription/Network/InventoryIPv6Settings.vue b/src/views/SystemDescription/Network/InventoryIPv6Settings.vue index 3de1c414..3f47b1fd 100644 --- a/src/views/SystemDescription/Network/InventoryIPv6Settings.vue +++ b/src/views/SystemDescription/Network/InventoryIPv6Settings.vue @@ -195,10 +195,6 @@ export default { margin: 0 !important; } -.edit { - cursor: pointer; -} - .close_icon { margin-left: 5px; } -- cgit v1.2.3