Compare commits

...

3 Commits

Author SHA1 Message Date
TIP Automation User
b2d9a829e9 Chg: update image tag in helm values to v2.10.0-RC2 2023-06-13 03:18:09 +00:00
Charles Bourque
c6a85d76cc Merge pull request #191 from stephb9959/main
[WIFI-12664] Fixed firmware list dates in firmware upgrade modal
2023-06-13 01:12:30 +07:00
Charles
4a74bfebc4 [WIFI-12664] Fixed firmware list dates in firmware upgrade modal
Signed-off-by: Charles <charles.bourque96@gmail.com>
2023-06-12 20:11:34 +02:00
4 changed files with 7 additions and 7 deletions

View File

@@ -8,7 +8,7 @@ fullnameOverride: ""
images:
owgwui:
repository: tip-tip-wlan-cloud-ucentral.jfrog.io/owgw-ui
tag: v2.10.0-RC1
tag: v2.10.0-RC2
pullPolicy: Always
services:

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "ucentral-client",
"version": "2.10.0(48)",
"version": "2.10.0(49)",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "ucentral-client",
"version": "2.10.0(48)",
"version": "2.10.0(49)",
"license": "ISC",
"dependencies": {
"@chakra-ui/icons": "^2.0.18",

View File

@@ -1,6 +1,6 @@
{
"name": "ucentral-client",
"version": "2.10.0(48)",
"version": "2.10.0(49)",
"description": "",
"private": true,
"main": "index.tsx",

View File

@@ -14,7 +14,7 @@ interface Props {
const FirmwareList: React.FC<Props> = ({ firmware, upgrade, isLoading }) => {
const { t } = useTranslation();
const sortedFirmware = useMemo(() => firmware.sort((a, b) => b.created - a.created), [firmware]);
const sortedFirmware = useMemo(() => firmware.sort((a, b) => b.imageDate - a.imageDate), [firmware]);
return (
<Box h="600px" w="100%" overflowY="auto" px={0}>
@@ -34,10 +34,10 @@ const FirmwareList: React.FC<Props> = ({ firmware, upgrade, isLoading }) => {
</Tr>
</Thead>
<Tbody>
{sortedFirmware.map(({ created, size, revision, uri }) => (
{sortedFirmware.map(({ imageDate, size, revision, uri }) => (
<Tr key={uuid()}>
<Td px={0} py={1} w="200px">
{compactDate(created)}
{compactDate(imageDate)}
</Td>
<Td px={0} py={1} width="160px">
{bytesString(size)}