mirror of
https://github.com/syncthing/syncthing.git
synced 2026-06-28 10:25:51 -04:00
Remove unused columns
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user