Remove a volume as content if it is the volume of that disk
This commit is contained in:
@@ -79,6 +79,10 @@ angular.module('Application').controller('SystemController', ['$scope', '$locati
|
||||
var usageOther = disk.used;
|
||||
|
||||
resetColors(disk.contents.length);
|
||||
|
||||
// filter content if content entry is actually the volume mounted that disk
|
||||
disk.contents = disk.contents.filter(function (content) { return content.path !== disk.mountpoint; });
|
||||
|
||||
disk.contents.forEach(function (content) {
|
||||
content.color = getNextColor();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user