mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-27 08:58:28 +00:00
Remove unused columns
This commit is contained in:
parent
3b7c760ffd
commit
fbef856a97
@ -23,7 +23,7 @@ export class DeviceListComponent implements AfterViewInit, OnInit, OnDestroy {
|
||||
dataSource: MatTableDataSource<Device>;
|
||||
|
||||
/** Columns displayed in the table. Columns IDs can be added, removed, or reordered. */
|
||||
displayedColumns = ['id', 'name', 'state', 'folders'];
|
||||
displayedColumns = ['id', 'name', 'state'];
|
||||
|
||||
constructor(
|
||||
private deviceService: DeviceService,
|
||||
|
@ -95,7 +95,6 @@ export class DeviceService {
|
||||
// Alloc array if needed
|
||||
if (!device.folders) {
|
||||
device.folders = [];
|
||||
device.folderNames = [];
|
||||
}
|
||||
|
||||
folders.forEach(folder => {
|
||||
@ -106,9 +105,6 @@ export class DeviceService {
|
||||
|
||||
// Add a reference to the folder to the device
|
||||
device.folders.push(folder);
|
||||
|
||||
// Add string folder name
|
||||
device.folderNames.push(folder.label);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user