Show disk content separately inside the usage graph

This commit is contained in:
Johannes Zellner
2019-08-21 20:27:43 +02:00
parent 6643b825ee
commit 173acc5226
4 changed files with 43 additions and 16 deletions
+7
View File
@@ -272,6 +272,13 @@ app.filter('prettyMemory', function () {
};
});
app.filter('prettyDiskSize', function () {
return function (value) {
if (value < 1024 * 1024) return (value/1024/1024).toFixed(2) + ' MB';
return (value/1024/1024/1024).toFixed(2) + ' GB';
};
});
app.filter('installationActive', function () {
return function(app) {
if (app.installationState === ISTATES.ERROR) return false;