dashboard: remove some debug console.logs()
This commit is contained in:
@@ -573,12 +573,10 @@ angular.module('Application').controller('BackupsController', ['$scope', '$locat
|
||||
Client.getBlockDevices(function (error, result) {
|
||||
if (error) return console.error('Failed to list blockdevices:', error);
|
||||
|
||||
console.log('all',result)
|
||||
// only offer non /, /boot or /home disks
|
||||
result = result.filter(function (d) { return d.mountpoint !== '/' && d.mountpoint !== '/home' && d.mountpoint !== '/boot'; });
|
||||
// only offer xfs and ext4 disks
|
||||
result = result.filter(function (d) { return d.type === 'xfs' || d.type === 'ext4'; });
|
||||
console.log('filtered',result)
|
||||
|
||||
// amend label for UI
|
||||
result.forEach(function (d) {
|
||||
|
||||
Reference in New Issue
Block a user