Fixed issues with subgroups in Tree view

This commit is contained in:
José González 2021-07-19 11:17:36 +02:00
parent 9183110028
commit 950ca956a3
1 changed files with 8 additions and 8 deletions

View File

@ -962,7 +962,7 @@ var TreeController = {
}
// If exist the detail container, show the data
if (
typeof controller.detailRecipient !== "undefined" &&
typeof controller.detailRecipient !== "undefined" ||
disabled == false
) {
if (element.type == "agent" || element.type == "module") {
@ -997,8 +997,8 @@ var TreeController = {
$node.addClass("leaf-empty");
if (
typeof element.children != "undefined" &&
element.children.length > 0 &&
(typeof element.children != "undefined" &&
element.children.length > 0) ||
element.disabled == false
) {
$node.removeClass("leaf-empty").addClass("leaf-closed");
@ -1032,13 +1032,13 @@ var TreeController = {
}
if (
typeof element.searchChildren != "undefined" &&
element.searchChildren
(typeof element.searchChildren != "undefined" &&
element.searchChildren) ||
element.disabled == true
) {
if (
(element.rootType == "group_edition" &&
typeof element.children == "undefined") ||
element.disabled == true
element.rootType == "group_edition" &&
typeof element.children == "undefined"
) {
$node.addClass("leaf-empty");
} else {