Show disk content label in usage bar tooltip

This commit is contained in:
Johannes Zellner
2023-12-14 13:01:59 +01:00
parent cbefd4195f
commit 09b438850e
2 changed files with 9 additions and 4 deletions

View File

@@ -96,11 +96,16 @@ angular.module('Application').controller('SystemController', ['$scope', '$locati
if (content.type === 'app') {
content.app = Client.getInstalledAppsByAppId()[content.id];
content.label = content.app.label || content.app.fqdn;
if (!content.app) content.uninstalled = true;
} else if (content.type === 'volume') {
content.volume = $scope.volumesById[content.id];
content.label = content.volume.name;
}
// ensure a label for ui
content.label = content.label || content.id;
usageOther -= content.usage;
});