From 0fbc2b92aa8bbca492da358b452c9f70dbf08bd1 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 14 Dec 2022 09:00:12 -0500 Subject: [PATCH] [WIFI-11936] Serial number in device table now real link Signed-off-by: Charles --- package-lock.json | 4 ++-- package.json | 2 +- public/locales/de/translation.json | 2 +- public/locales/en/translation.json | 2 +- public/locales/es/translation.json | 2 +- public/locales/fr/translation.json | 2 +- public/locales/pt/translation.json | 2 +- src/pages/Devices/ListCard/index.tsx | 13 +++---------- 8 files changed, 11 insertions(+), 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index e0e51ec..b00d5f2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ucentral-client", - "version": "2.8.0(44)", + "version": "2.8.0(45)", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ucentral-client", - "version": "2.8.0(44)", + "version": "2.8.0(45)", "license": "ISC", "dependencies": { "@chakra-ui/icons": "^2.0.11", diff --git a/package.json b/package.json index cff8ef8..794f485 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ucentral-client", - "version": "2.8.0(44)", + "version": "2.8.0(45)", "description": "", "private": true, "main": "index.tsx", diff --git a/public/locales/de/translation.json b/public/locales/de/translation.json index 6ab78f5..b3f578f 100644 --- a/public/locales/de/translation.json +++ b/public/locales/de/translation.json @@ -902,7 +902,7 @@ "dfs": "DFS-Überschreibung", "gw_commands": "Gateway-Befehle", "identifier": "Identifikator", - "key_verification": "Überprüfung des Signaturschlüssels", + "key_verification": "Signieren von Schlüsselinformationen", "restricted": "Beschränkt", "signed_upgrade": "Nur signiertes Upgrade", "title": "Beschränkungen", diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 9700a2a..fbdb696 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -902,7 +902,7 @@ "dfs": "DFS Override", "gw_commands": "Gateway Commands", "identifier": "Identifier", - "key_verification": "Signing Key Verification", + "key_verification": "Signing Key Information", "restricted": "Restricted", "signed_upgrade": "Signed Upgrade Only", "title": "Restrictions", diff --git a/public/locales/es/translation.json b/public/locales/es/translation.json index 92d01c4..6bd44e7 100644 --- a/public/locales/es/translation.json +++ b/public/locales/es/translation.json @@ -902,7 +902,7 @@ "dfs": "Anulación de DFS", "gw_commands": "Comandos de puerta de enlace", "identifier": "Identificador", - "key_verification": "Verificación de clave de firma", + "key_verification": "Información clave de firma", "restricted": "Restringido", "signed_upgrade": "Solo actualización firmada", "title": "Las restricciones", diff --git a/public/locales/fr/translation.json b/public/locales/fr/translation.json index e270cf3..05f8928 100644 --- a/public/locales/fr/translation.json +++ b/public/locales/fr/translation.json @@ -902,7 +902,7 @@ "dfs": "Remplacement DFS", "gw_commands": "Commandes de passerelle", "identifier": "Identifiant", - "key_verification": "Vérification de la clé de signature", + "key_verification": "Signature des informations clés", "restricted": "Limité", "signed_upgrade": "Mise à niveau signée uniquement", "title": "Restrictions", diff --git a/public/locales/pt/translation.json b/public/locales/pt/translation.json index 5841679..2cd79c9 100644 --- a/public/locales/pt/translation.json +++ b/public/locales/pt/translation.json @@ -902,7 +902,7 @@ "dfs": "Substituição DFS", "gw_commands": "Comandos de gateway", "identifier": "Identificador", - "key_verification": "Verificação da chave de assinatura", + "key_verification": "Informações Chave de Assinatura", "restricted": "Restrito", "signed_upgrade": "Somente atualização assinada", "title": "RESTRIÇÕES", diff --git a/src/pages/Devices/ListCard/index.tsx b/src/pages/Devices/ListCard/index.tsx index 611dd79..989161e 100644 --- a/src/pages/Devices/ListCard/index.tsx +++ b/src/pages/Devices/ListCard/index.tsx @@ -1,9 +1,8 @@ import * as React from 'react'; -import { Box, Button, Heading, Image, Spacer, Tooltip, useDisclosure } from '@chakra-ui/react'; +import { Box, Heading, Image, Link, Spacer, Tooltip, useDisclosure } from '@chakra-ui/react'; import { LockSimple } from 'phosphor-react'; import ReactCountryFlag from 'react-country-flag'; import { useTranslation } from 'react-i18next'; -import { useNavigate } from 'react-router-dom'; import Actions from './Actions'; import DeviceListFirmwareButton from './FirmwareButton'; import AP from './icons/AP.png'; @@ -49,7 +48,6 @@ const BADGE_COLORS: Record = { const DeviceListCard = () => { const { t } = useTranslation(); - const navigate = useNavigate(); const [serialNumber, setSerialNumber] = React.useState(''); const [hiddenColumns, setHiddenColumns] = React.useState([]); const [pageInfo, setPageInfo] = React.useState(undefined); @@ -99,10 +97,6 @@ const DeviceListCard = () => { configureModalProps.onOpen(); }; - const goToSerial = (serial: string) => () => { - navigate(`/devices/${serial}`); - }; - const badgeCell = React.useCallback( (device: DeviceWithStatus) => ( { const serialCell = React.useCallback( (device: DeviceWithStatus) => ( - + ), [], ); @@ -406,7 +400,6 @@ const DeviceListCard = () => { // @ts-ignore setPageInfo={setPageInfo} saveSettingsId="gateway.devices.table" - minHeight="600px" />