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) {
if (this.columns.length == 0) {
for (let param_name in schema.properties) {
if (param_name != "_id") {
this.displayedColumns.push(param_name);
}
}
} else {
for (let column of this.columns) {
if (this.jsonSchemasService.path_exists(schema, column)) {
this.displayedColumns.push(column);
}
for (let column of this.columns) {
if (this.jsonSchemasService.path_exists(schema, column)) {
this.displayedColumns.push(column);
}
}
if (this.displayedColumns.length == 0) {
for (let param_name in schema.properties) {
if (param_name != "_id") {
this.displayedColumns.push(param_name);
}
}
}
}
getColumnValue(row: any, col: string) {