This commit is contained in:
jonaswinkler 2020-12-14 19:39:16 +01:00
parent b7126030d1
commit 381a503947
2 changed files with 4 additions and 4 deletions

View File

@ -76,6 +76,7 @@ export class DocumentListComponent implements OnInit {
loadViewConfig(view: PaperlessSavedView) {
this.list.load(view)
this.list.reload()
}
saveViewConfig() {

View File

@ -76,11 +76,10 @@ export class DocumentListViewService {
}
load(view: PaperlessSavedView) {
this.view.filter_rules = cloneFilterRules(view.filter_rules)
this.view.sort_reverse = view.sort_reverse
this.view.sort_field = view.sort_field
this.documentListView.filter_rules = cloneFilterRules(view.filter_rules)
this.documentListView.sort_reverse = view.sort_reverse
this.documentListView.sort_field = view.sort_field
this.saveDocumentListView()
this.reload()
}
clear() {