Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
EOLE
Zéphir
WebUI
Commits
2a6efdca
Commit
2a6efdca
authored
Jun 17, 2019
by
Matthieu Lamalle
Browse files
Merge branch 'probes_displayed' into 'develop'
display only useful probes See merge request
!12
parents
ec793de0
d08c23f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pages/ServersPage/EnvironmentData.js
View file @
2a6efdca
...
...
@@ -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
"
>
D
ONNÉES
D
&
#
39
;
ENVIRONNEMENT
DU
SERVEUR
D
onnées
d
&
#
39
;
environnement
du
serveur
<
/Typography
>
{
connection
}
<
br
/>
{
data
()}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment