From e97cf1ac76dae564d3acc95dabb3fd7f8ae98602 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Fri, 4 Nov 2022 20:53:07 +0100 Subject: [PATCH] Remove a volume as content if it is the volume of that disk --- src/views/system.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/system.js b/src/views/system.js index 6d7dfaff4..bfba98994 100644 --- a/src/views/system.js +++ b/src/views/system.js @@ -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();