diff --git a/package-lock.json b/package-lock.json index ab0cf4a..21908e5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ucentral-client", - "version": "2.3.11", + "version": "2.3.12", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ucentral-client", - "version": "2.3.11", + "version": "2.3.12", "dependencies": { "@coreui/coreui": "^3.4.0", "@coreui/icons": "^2.0.1", @@ -32,7 +32,7 @@ "react-tooltip": "^4.2.21", "react-widgets": "^5.1.1", "sass": "^1.35.1", - "ucentral-libs": "^1.0.5", + "ucentral-libs": "^1.0.8", "uuid": "^8.3.2" }, "devDependencies": { @@ -14842,9 +14842,9 @@ } }, "node_modules/ucentral-libs": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/ucentral-libs/-/ucentral-libs-1.0.5.tgz", - "integrity": "sha512-AI/opiiwxivcKDmXlnKKEHsFb2lBruzCb2e8BEXGsZ2ECtCQRj4tnvoxuejc1H8PLUyU2uT0UAnNFkCm4QwMGA==", + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/ucentral-libs/-/ucentral-libs-1.0.8.tgz", + "integrity": "sha512-ML2Q3isAbGhs3jLXy48wjrpyWfUZO4Bc1nvH+2DK+ptsyHURwfYWXjPQAakEKi2HDSRIztT2w9+ihCwKNaW4Mg==", "dependencies": { "@coreui/coreui": "^3.4.0", "@coreui/icons": "^2.0.1", @@ -27716,9 +27716,9 @@ } }, "ucentral-libs": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/ucentral-libs/-/ucentral-libs-1.0.5.tgz", - "integrity": "sha512-AI/opiiwxivcKDmXlnKKEHsFb2lBruzCb2e8BEXGsZ2ECtCQRj4tnvoxuejc1H8PLUyU2uT0UAnNFkCm4QwMGA==", + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/ucentral-libs/-/ucentral-libs-1.0.8.tgz", + "integrity": "sha512-ML2Q3isAbGhs3jLXy48wjrpyWfUZO4Bc1nvH+2DK+ptsyHURwfYWXjPQAakEKi2HDSRIztT2w9+ihCwKNaW4Mg==", "requires": { "@coreui/coreui": "^3.4.0", "@coreui/icons": "^2.0.1", diff --git a/package.json b/package.json index db6df13..ce7538d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ucentral-client", - "version": "2.3.11", + "version": "2.3.12", "dependencies": { "@coreui/coreui": "^3.4.0", "@coreui/icons": "^2.0.1", @@ -26,7 +26,7 @@ "react-tooltip": "^4.2.21", "react-widgets": "^5.1.1", "sass": "^1.35.1", - "ucentral-libs": "^1.0.5", + "ucentral-libs": "^1.0.8", "uuid": "^8.3.2" }, "main": "index.js", diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 84cd44e..64b44ab 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -466,7 +466,7 @@ "unassigned_tags": "Unassigned tags", "validating_import_file": "Validating import file and data...", "venue": "Venue", - "view_in_gateway": "View in Gateway" + "view_in_gateway": "Details in Gateway" }, "location": { "add": "Add Location", diff --git a/src/components/CommandHistory/DetailsModal.js b/src/components/CommandHistory/DetailsModal.js index c8825e4..258a5ea 100644 --- a/src/components/CommandHistory/DetailsModal.js +++ b/src/components/CommandHistory/DetailsModal.js @@ -17,7 +17,7 @@ const DetailsModal = ({ t, show, toggle, details, commandUuid }) => ( -
{JSON.stringify(details, null, 4)}
+
{JSON.stringify(details, null, 2)}
); diff --git a/src/components/DeviceConfiguration/DeviceConfigurationModal.js b/src/components/DeviceConfiguration/DeviceConfigurationModal.js index a6a3049..07b759a 100644 --- a/src/components/DeviceConfiguration/DeviceConfigurationModal.js +++ b/src/components/DeviceConfiguration/DeviceConfigurationModal.js @@ -19,7 +19,7 @@ const DeviceConfigurationModal = ({ show, toggle, configuration }) => ( {t('configuration.title')} -
{JSON.stringify(configuration, null, 4)}
+
{JSON.stringify(configuration, null, 2)}
diff --git a/src/components/DeviceLogs/index.js b/src/components/DeviceLogs/index.js index 3d0d266..c143c73 100644 --- a/src/components/DeviceLogs/index.js +++ b/src/components/DeviceLogs/index.js @@ -106,7 +106,7 @@ const DeviceLogs = () => { const getDetails = (index, logDetails) => { if (details.includes(index)) - return
{JSON.stringify(logDetails, null, 4)}
; + return
{JSON.stringify(logDetails, null, 2)}
; return
;
   };
 
diff --git a/src/components/FirmwareDashboard/index.js b/src/components/FirmwareDashboard/index.js
index 340bdef..59250e6 100644
--- a/src/components/FirmwareDashboard/index.js
+++ b/src/components/FirmwareDashboard/index.js
@@ -134,7 +134,7 @@ const FirmwareDashboard = () => {
     if (
       parsedData.numberOfDevices === undefined ||
       Number.isNaN(parsedData.numberOfDevices) ||
-      parsedData === 0
+      parsedData.numberOfDevices === 0
     ) {
       parsedData.latestSoftwareRate = '-';
     } else {
diff --git a/src/components/InterfaceStatistics/LatestStatisticsModal.js b/src/components/InterfaceStatistics/LatestStatisticsModal.js
index 8277d11..89a0b61 100644
--- a/src/components/InterfaceStatistics/LatestStatisticsModal.js
+++ b/src/components/InterfaceStatistics/LatestStatisticsModal.js
@@ -51,7 +51,7 @@ const LatestStatisticsModal = ({ show, toggle }) => {
         
       
       
-        
{JSON.stringify(latestStats, null, 4)}
+
{JSON.stringify(latestStats, null, 2)}
); diff --git a/src/components/TelemetryModal/index.js b/src/components/TelemetryModal/index.js index 9c7546d..5653515 100644 --- a/src/components/TelemetryModal/index.js +++ b/src/components/TelemetryModal/index.js @@ -193,7 +193,7 @@ const TelemetryModal = ({ show, toggle }) => { -
{JSON.stringify(lastMessage, null, '\t')}
+
{JSON.stringify(lastMessage, null, 2)}