Displaying all columns in list

This commit is contained in:
2023-02-11 17:50:47 +01:00
parent e224dda42a
commit cb3af5bcf2

View File

@@ -56,19 +56,19 @@ export class ListComponent implements OnInit {
} }
getColumnDefinition(schema: JSONSchema7) { getColumnDefinition(schema: JSONSchema7) {
if (this.columns.length == 0) { for (let column of this.columns) {
for (let param_name in schema.properties) { if (this.jsonSchemasService.path_exists(schema, column)) {
if (param_name != "_id") { this.displayedColumns.push(column);
this.displayedColumns.push(param_name); }
} }
}
} else { if (this.displayedColumns.length == 0) {
for (let column of this.columns) { for (let param_name in schema.properties) {
if (this.jsonSchemasService.path_exists(schema, column)) { if (param_name != "_id") {
this.displayedColumns.push(column); this.displayedColumns.push(param_name);
}
} }
} }
}
} }
getColumnValue(row: any, col: string) { getColumnValue(row: any, col: string) {