Commit 2a6efdca authored by Matthieu Lamalle's avatar Matthieu Lamalle
Browse files

Merge branch 'probes_displayed' into 'develop'

display only useful probes

See merge request !12
parents ec793de0 d08c23f8
......@@ -8,17 +8,17 @@ export class EnvironmentData extends Component {
render() {
const { environment, lastpeerconnection } = this.props;
const data = () => {
if ( JSON.stringify(environment) === "{}" ) {
if ( JSON.stringify(environment) === "{}" || environment === undefined || Object.keys(environment).length === 0) {
return "Il n'y a aucune donnée d'environnement disponible.";
} else {
const lowdata_environment = {}
lowdata_environment["ip"] = environment["creole.general.ip_server"]
lowdata_environment["netmask"] = environment["creole.general.netmask_server"]
lowdata_environment["gateway"] = environment["creole.interface_0.test_adresse_ip_gw"]
lowdata_environment["dns"] = environment["creole.general.test_adresse_ip_dns"]
return (
<JsonTable
json={ environment }
settings={{
cellClass: 'cell',
headerClass: 'header',
rowClass: 'row'
}}
json={ lowdata_environment }
/>
);
}
......@@ -30,7 +30,7 @@ export class EnvironmentData extends Component {
return (
<div>
<Typography variant="h5" component="h3">
DONNÉES D&#39;ENVIRONNEMENT DU SERVEUR
Données d&#39;environnement du serveur
</Typography>
{connection}<br />
{data()}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment