Show analyze disk button if no disk data is available yet
This commit is contained in:
@@ -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 }]
|
||||
|
||||
Reference in New Issue
Block a user