mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralgw-ui.git
synced 2025-10-30 10:22:24 +00:00
Compare commits
4 Commits
v2.6.0-RC3
...
release/v2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2c62c7bc92 | ||
|
|
2befa3ce6f | ||
|
|
5a39deaa37 | ||
|
|
85b92f46f5 |
@@ -8,7 +8,7 @@ fullnameOverride: ""
|
||||
images:
|
||||
owgwui:
|
||||
repository: tip-tip-wlan-cloud-ucentral.jfrog.io/owgw-ui
|
||||
tag: v2.6.0-RC3
|
||||
tag: v2.6.0
|
||||
pullPolicy: Always
|
||||
|
||||
services:
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "ucentral-client",
|
||||
"version": "2.6.28",
|
||||
"version": "2.6.29",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "ucentral-client",
|
||||
"version": "2.6.28",
|
||||
"version": "2.6.29",
|
||||
"dependencies": {
|
||||
"@coreui/coreui": "^3.4.0",
|
||||
"@coreui/icons": "^2.0.1",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ucentral-client",
|
||||
"version": "2.6.28",
|
||||
"version": "2.6.29",
|
||||
"dependencies": {
|
||||
"@coreui/coreui": "^3.4.0",
|
||||
"@coreui/icons": "^2.0.1",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import React, { useEffect, useMemo, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import PropTypes from 'prop-types';
|
||||
import Select from 'react-select';
|
||||
@@ -55,6 +55,17 @@ const TelemetryModal = ({ show, toggle }) => {
|
||||
}
|
||||
};
|
||||
|
||||
const msgToDisplay = useMemo(() => {
|
||||
const display = {};
|
||||
if (lastMessage) {
|
||||
for (const type of types) {
|
||||
display[type.value] = lastMessage[type.value];
|
||||
}
|
||||
}
|
||||
|
||||
return display;
|
||||
}, [lastMessage, types]);
|
||||
|
||||
const getUrl = () => {
|
||||
setLastUpdate('');
|
||||
setLastMessage({});
|
||||
@@ -82,14 +93,13 @@ const TelemetryModal = ({ show, toggle }) => {
|
||||
.then((response) => {
|
||||
if (chosenMethod === 'true') {
|
||||
addToast({
|
||||
title: t('common.success'),
|
||||
body: t('commands.command_success'),
|
||||
color: 'success',
|
||||
autohide: true,
|
||||
});
|
||||
title: t('common.success'),
|
||||
body: t('commands.command_success'),
|
||||
color: 'success',
|
||||
autohide: true,
|
||||
});
|
||||
toggle();
|
||||
}
|
||||
else if (response.data.uri && response.data.uri !== '') {
|
||||
} else if (response.data.uri && response.data.uri !== '') {
|
||||
setReceivedMessages(0);
|
||||
setSocket(new WebSocket(response.data.uri));
|
||||
}
|
||||
@@ -259,7 +269,7 @@ const TelemetryModal = ({ show, toggle }) => {
|
||||
</CRow>
|
||||
<CRow>
|
||||
<CCol>
|
||||
<pre>{JSON.stringify(lastMessage, null, 2)}</pre>
|
||||
<pre>{JSON.stringify(msgToDisplay, null, 2)}</pre>
|
||||
</CCol>
|
||||
</CRow>
|
||||
<CRow>
|
||||
|
||||
Reference in New Issue
Block a user