Add Layer by hand, pagination fix
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user