mirror of
https://github.com/allerta-vvf/allerta-vvf
synced 2025-06-06 00:49:21 +02:00
Hide hidden rows
This commit is contained in:
@@ -20,7 +20,10 @@ export class TableComponent implements OnInit {
|
||||
loadTableData() {
|
||||
this.apiClient.get(this.sourceType || "list").then((data: any) => {
|
||||
console.log(data);
|
||||
this.data = data;
|
||||
this.data = data.filter((row: any) => {
|
||||
if(typeof row.hidden !== 'undefined') return !row.hidden;
|
||||
return true;
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user