Merge pull request #196 from stephb9959/main

[WIFI-13005] Firmware modal copy button fix
This commit is contained in:
Charles Bourque
2023-10-12 14:42:34 +01:00
committed by GitHub
4 changed files with 8 additions and 7 deletions

10
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "ucentral-client", "name": "ucentral-client",
"version": "2.11.0(11)", "version": "2.11.0(12)",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "ucentral-client", "name": "ucentral-client",
"version": "2.11.0(11)", "version": "2.11.0(12)",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@chakra-ui/anatomy": "^2.1.1", "@chakra-ui/anatomy": "^2.1.1",
@@ -8438,9 +8438,9 @@
} }
}, },
"node_modules/postcss": { "node_modules/postcss": {
"version": "8.4.28", "version": "8.4.31",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.28.tgz", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.31.tgz",
"integrity": "sha512-Z7V5j0cq8oEKyejIKfpD8b4eBy9cwW2JWPk0+fB1HOAMsfHbnAXLLS+PfVWlzMSLQaWttKDt607I0XHmpE67Vw==", "integrity": "sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==",
"funding": [ "funding": [
{ {
"type": "opencollective", "type": "opencollective",

View File

@@ -1,6 +1,6 @@
{ {
"name": "ucentral-client", "name": "ucentral-client",
"version": "2.11.0(11)", "version": "2.11.0(12)",
"description": "", "description": "",
"private": true, "private": true,
"main": "index.tsx", "main": "index.tsx",

View File

@@ -694,7 +694,7 @@ const DeviceListCard = () => {
<DataGrid<DeviceWithStatus> <DataGrid<DeviceWithStatus>
controller={tableController} controller={tableController}
header={{ header={{
title: `${getCount.data?.count} ${t('devices.title')}`, title: `${getCount.data?.count ?? 0} ${t('devices.title')}`,
objectListed: t('devices.title'), objectListed: t('devices.title'),
leftContent: <GlobalSearchBar />, leftContent: <GlobalSearchBar />,
otherButtons: ( otherButtons: (

View File

@@ -138,6 +138,7 @@ const FirmwareDetailsModal = ({ modalProps, firmware }: Props) => {
React.useEffect(() => { React.useEffect(() => {
if (firmware) { if (firmware) {
copy.setValue(firmware?.uri ?? '');
setNewDescription(firmware?.description); setNewDescription(firmware?.description);
} }
}, [firmware]); }, [firmware]);