hide the filter when it's cleared.

This commit is contained in:
jonaswinkler
2020-12-03 15:02:27 +01:00
parent 802e389198
commit 20fc065567
3 changed files with 10 additions and 2 deletions

View File

@@ -66,6 +66,11 @@ export class DocumentListComponent implements OnInit {
this.list.filterRules = this.filterRules
}
clearFilterRules() {
this.list.filterRules = this.filterRules
this.showFilter = false
}
loadViewConfig(config: SavedViewConfig) {
this.filterRules = cloneFilterRules(config.filterRules)
this.list.load(config)