Show disk content label in usage bar tooltip
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user