Fixed id of pandora node

This commit is contained in:
Arturo Gonzalez 2017-10-03 10:32:22 +02:00
parent 7b3a0d49f1
commit 65bfedf404
2 changed files with 1471 additions and 1463 deletions

View File

@ -1119,7 +1119,7 @@ function delete_nodes() {
selection
.each(function (d) {
//Avoid to delete pandora node center
if (d.id_agent == -1) {
if (d.id_agent == 0) {
return;
}
@ -1589,7 +1589,6 @@ function show_menu(item, data) {
name: interface_link_add,
icon: "interface_link_children",
disabled: function () {
console.log(data);
if (enterprise_installed) {
if (data.type == 3) {
return true;
@ -3058,14 +3057,16 @@ function draw_elements_graph() {
}
else {
return "85%";
}})
}
})
.attr("text-anchor", function (d) {
if (d.source.x < d.target.x) {
return "";
}
else {
return "end";
}})
}
})
.append("tspan")
.attr("style", "font-size: 12px; " +
"font-style:normal; " +
@ -3103,14 +3104,16 @@ function draw_elements_graph() {
}
else {
return "";
}})
}
})
.attr("text-anchor", function (d) {
if (d.source.x < d.target.x) {
return "end";
}
else {
return "";
}})
}
})
.append("tspan")
.attr("style", "font-size: 12px; " +
"font-style:normal; " +

View File

@ -495,8 +495,13 @@ switch ($tab) {
$count = 0;
if (($count == 0) && ($network_map['source'] != 'empty')) {
if (enterprise_installed() && ($network_map['generated'])) {
$data['nodes'] = __('Empty map');
}
else {
$data['nodes'] = __('Pending to generate');
}
}
else {
$data['nodes'] = $count - 1; //PandoraFMS node is not an agent
}