Better indicator if a disk is also a volume
This commit is contained in:
@@ -80,7 +80,8 @@ angular.module('Application').controller('SystemController', ['$scope', '$locati
|
||||
|
||||
resetColors(disk.contents.length);
|
||||
|
||||
// filter content if content entry is actually the volume mounted that disk
|
||||
// if this disk is a volume amend it and remove it from contents
|
||||
disk.contents.forEach(function (content) { if (content.path === disk.mountpoint) disk.volume = $scope.volumesById[content.id]; });
|
||||
disk.contents = disk.contents.filter(function (content) { return content.path !== disk.mountpoint; });
|
||||
|
||||
disk.contents.forEach(function (content) {
|
||||
|
||||
Reference in New Issue
Block a user