Add Layer by hand, pagination fix

This commit is contained in:
2023-01-06 12:15:43 +01:00
parent 42006caaf2
commit acc2c67688
6 changed files with 12 additions and 14 deletions

View File

@@ -24,7 +24,6 @@ export class LayerDetailComponent implements OnInit {
displayedColumns = ['code', 'value'];
dataSource!: MatTableDataSource<Record>;
@ViewChild(MatPaginator) paginator!: MatPaginator;
@ViewChild(MatSort) sort!: MatSort;
constructor(
@@ -41,7 +40,6 @@ export class LayerDetailComponent implements OnInit {
this.form = Layer.getForm(this.fb$);
this.document = await this.load();
this.dataSource = new MatTableDataSource<Record>(this.document.records);
this.dataSource.paginator = this.paginator;
this.dataSource.sort = this.sort;
this.document.fillForm(this.form);
this.form.disable();