Remove a volume as content if it is the volume of that disk

This commit is contained in:
Johannes Zellner
2022-11-04 20:53:07 +01:00
parent 778c52c547
commit e97cf1ac76

View File

@@ -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();