mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
improvements to the filter.
This commit is contained in:
parent
c263d8e8f1
commit
c4d13b5802
@ -53,11 +53,10 @@ export class DocumentListComponent implements OnInit {
|
|||||||
this.list.savedView = this.savedViewConfigService.getConfig(params.get('id'))
|
this.list.savedView = this.savedViewConfigService.getConfig(params.get('id'))
|
||||||
} else {
|
} else {
|
||||||
this.list.savedView = null
|
this.list.savedView = null
|
||||||
|
this.showFilter = this.filterRules.length > 0
|
||||||
}
|
}
|
||||||
this.filterRules = this.list.filterRules
|
this.filterRules = this.list.filterRules
|
||||||
this.showFilter = this.filterRules.length > 0
|
this.list.clear()
|
||||||
// prevents temporarily visible results from previous views
|
|
||||||
this.list.documents = []
|
|
||||||
this.list.reload()
|
this.list.reload()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -82,6 +82,12 @@ export class DocumentListViewService {
|
|||||||
this.reload()
|
this.reload()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clear() {
|
||||||
|
this.collectionSize = null
|
||||||
|
this.documents = []
|
||||||
|
this.currentPage = 1
|
||||||
|
}
|
||||||
|
|
||||||
reload(onFinish?) {
|
reload(onFinish?) {
|
||||||
this.isReloading = true
|
this.isReloading = true
|
||||||
this.documentService.list(
|
this.documentService.list(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user