From 67716aedde331053faca6b744d064ea22e2e0998 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 22 Feb 2022 21:39:58 +0200 Subject: [PATCH] 2.6.2: fixed configuration display copy to clipboard format, added copy to clipboard button to latest statistics modal --- package-lock.json | 4 ++-- package.json | 2 +- src/components/ConfigurationDisplay/index.js | 2 +- .../InterfaceStatistics/LatestStatisticsModal.js | 9 ++++++++- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 38b9763..8d40960 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ucentral-client", - "version": "2.6.1", + "version": "2.6.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ucentral-client", - "version": "2.6.1", + "version": "2.6.2", "dependencies": { "@coreui/coreui": "^3.4.0", "@coreui/icons": "^2.0.1", diff --git a/package.json b/package.json index f5b189b..679e752 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ucentral-client", - "version": "2.6.1", + "version": "2.6.2", "dependencies": { "@coreui/coreui": "^3.4.0", "@coreui/icons": "^2.0.1", diff --git a/src/components/ConfigurationDisplay/index.js b/src/components/ConfigurationDisplay/index.js index bbab63c..106a647 100644 --- a/src/components/ConfigurationDisplay/index.js +++ b/src/components/ConfigurationDisplay/index.js @@ -37,7 +37,7 @@ const ConfigurationDisplay = ({ getData, deviceConfig }) => { diff --git a/src/components/InterfaceStatistics/LatestStatisticsModal.js b/src/components/InterfaceStatistics/LatestStatisticsModal.js index 89a0b61..5b510f3 100644 --- a/src/components/InterfaceStatistics/LatestStatisticsModal.js +++ b/src/components/InterfaceStatistics/LatestStatisticsModal.js @@ -5,7 +5,7 @@ import { cilX } from '@coreui/icons'; import PropTypes from 'prop-types'; import { useTranslation } from 'react-i18next'; import axiosInstance from 'utils/axiosInstance'; -import { useAuth, useDevice } from 'ucentral-libs'; +import { useAuth, useDevice, CopyToClipboardButton } from 'ucentral-libs'; const LatestStatisticsModal = ({ show, toggle }) => { const { t } = useTranslation(); @@ -51,6 +51,13 @@ const LatestStatisticsModal = ({ show, toggle }) => { +
+ +
{JSON.stringify(latestStats, null, 2)}