Show analyze disk button if no disk data is available yet

This commit is contained in:
Johannes Zellner
2022-10-13 02:19:38 +02:00
parent 9534bfa9d5
commit d898c16ceb
2 changed files with 11 additions and 1 deletions

View File

@@ -38,6 +38,11 @@ angular.module('Application').controller('SystemController', ['$scope', '$locati
Client.diskUsage(function (error, result) {
if (error) return console.error('Failed to refresh disk usage.', error);
if (!result.usage) {
$scope.disks.busy = false;
return;
}
$scope.disks.ts = result.usage.ts;
// [ { filesystem, type, size, used, available, capacity, mountpoint }]