Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Commit

Permalink
closes #12
Browse files Browse the repository at this point in the history
  • Loading branch information
eklieme committed Apr 21, 2017
1 parent dbf5df8 commit a658f99
Showing 1 changed file with 17 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -485,18 +485,23 @@ ngDefine('cockpit.plugin.statistics-plugin.dashboard', function(module) {
var removeUnassigned = false;
var removeAssigned = false;

if(result[0].children[i].children[0].children[j].children[0].size==0) {
removeAssigned = true;
}
if(result[0].children[i].children[0].children[j].children[1].size==0) {
removeUnassigned = true;
}

if(removeAssigned) {
result[0].children[i].children[0].children[j].children = [result[0].children[i].children[0].children[j].children[1]];
}
if(removeUnassigned) {
result[0].children[i].children[0].children[j].children = [result[0].children[i].children[0].children[j].children[0]];
if(result[0].children[i].children[0].children[j].children
&& result[0].children[i].children[0].children[j].children[0]) {

if(result[0].children[i].children[0].children[j].children[0].size==0) {
removeAssigned = true;
}
if(result[0].children[i].children[0].children[j].children[1].size==0) {
removeUnassigned = true;
}

if(removeAssigned) {
result[0].children[i].children[0].children[j].children = [result[0].children[i].children[0].children[j].children[1]];
}
if(removeUnassigned) {
result[0].children[i].children[0].children[j].children = [result[0].children[i].children[0].children[j].children[0]];
}

}
}
}
Expand Down

0 comments on commit a658f99

Please sign in to comment.