From 495a124884c078352ac61f0e657ad24e16276db5 Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 22 Nov 2021 16:58:55 -0500 Subject: [PATCH] Version 1.0.39 --- package-lock.json | 4 +- package.json | 2 +- src/components/DeviceBadge/index.js | 3 +- .../DuplicateEntityMapForm/index.js | 100 ++++++++++++++++++ src/index.js | 1 + 5 files changed, 106 insertions(+), 4 deletions(-) create mode 100644 src/components/DuplicateEntityMapForm/index.js diff --git a/package-lock.json b/package-lock.json index 6ac4d69..d6d2680 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ucentral-libs", - "version": "1.0.37", + "version": "1.0.39", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ucentral-libs", - "version": "1.0.37", + "version": "1.0.39", "license": "BSD-3-Clause", "dependencies": { "@coreui/coreui": "^3.4.0", diff --git a/package.json b/package.json index 3299c21..55cec73 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ucentral-libs", - "version": "1.0.37", + "version": "1.0.39", "main": "dist/index.js", "source": "src/index.js", "engines": { diff --git a/src/components/DeviceBadge/index.js b/src/components/DeviceBadge/index.js index 777ee7d..7d420cb 100644 --- a/src/components/DeviceBadge/index.js +++ b/src/components/DeviceBadge/index.js @@ -21,6 +21,7 @@ const DeviceBadge = ({ t, device, deviceIcons }) => { setSrc(deviceIcons.iotIcon); break; default: + setSrc(deviceIcons.apIcon); break; } }; @@ -49,7 +50,7 @@ const DeviceBadge = ({ t, device, deviceIcons }) => { style={{ height: '35px', width: '35px' }} className={`c-avatar c-avatar-lg ${getCertColor()}`} > - {device.deviceType} + ( + + + + {t('user.name')} + + + + {t('common.required')} + + + + + {t('user.description')} + + + + {t('common.required')} + + + + +
{t('common.visibility')}:
+
+ + + + + + +
+ + + {t('user.note')} + + + + + +
+); + +DuplicateEntityMapForm.propTypes = { + t: PropTypes.func.isRequired, + disable: PropTypes.bool.isRequired, + fields: PropTypes.instanceOf(Object).isRequired, + updateField: PropTypes.func.isRequired, +}; + +export default DuplicateEntityMapForm; diff --git a/src/index.js b/src/index.js index 1860fc2..f43501c 100644 --- a/src/index.js +++ b/src/index.js @@ -44,6 +44,7 @@ export { default as DeviceFirmwareModal } from './components/DeviceFirmwareModal export { default as DeviceListTable } from './components/DeviceListTable'; export { default as DeviceStatusCard } from './components/DeviceStatusCard'; export { default as DeviceSearchBar } from './components/DeviceSearchBar'; +export { default as DuplicateEntityMapForm } from './components/DuplicateEntityMapForm'; export { default as EditConfigurationForm } from './components/EditConfigurationForm'; export { default as EditContactForm } from './components/EditContactForm'; export { default as EditDefaultConfigurationForm } from './components/EditDefaultConfigurationForm';