mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
use ngIf for editor components to maybe help performance
This commit is contained in:
parent
29e9d7d793
commit
48d83e166b
@ -78,9 +78,9 @@
|
|||||||
</app-page-header>
|
</app-page-header>
|
||||||
|
|
||||||
<div class="w-100 mb-2 mb-sm-4">
|
<div class="w-100 mb-2 mb-sm-4">
|
||||||
<app-filter-editor [hidden]="isBulkEditing" [(filterRules)]="list.filterRules" #filterEditor></app-filter-editor>
|
<app-filter-editor *ngIf="!isBulkEditing" [(filterRules)]="list.filterRules" #filterEditor></app-filter-editor>
|
||||||
|
|
||||||
<app-bulk-editor [hidden]="!isBulkEditing"
|
<app-bulk-editor *ngIf="isBulkEditing"
|
||||||
[viewDocuments]="list.documents"
|
[viewDocuments]="list.documents"
|
||||||
[(selectedDocuments)]="list.selected"
|
[(selectedDocuments)]="list.selected"
|
||||||
(selectPage)="list.selectPage()"
|
(selectPage)="list.selectPage()"
|
||||||
|
@ -120,17 +120,23 @@ export class DocumentListComponent implements OnInit {
|
|||||||
|
|
||||||
clickTag(tagID: number) {
|
clickTag(tagID: number) {
|
||||||
this.list.selectNone()
|
this.list.selectNone()
|
||||||
this.filterEditor.toggleTag(tagID)
|
setTimeout(() => {
|
||||||
|
this.filterEditor.toggleTag(tagID)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
clickCorrespondent(correspondentID: number) {
|
clickCorrespondent(correspondentID: number) {
|
||||||
this.list.selectNone()
|
this.list.selectNone()
|
||||||
this.filterEditor.toggleCorrespondent(correspondentID)
|
setTimeout(() => {
|
||||||
|
this.filterEditor.toggleCorrespondent(correspondentID)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
clickDocumentType(documentTypeID: number) {
|
clickDocumentType(documentTypeID: number) {
|
||||||
this.list.selectNone()
|
this.list.selectNone()
|
||||||
this.filterEditor.toggleDocumentType(documentTypeID)
|
setTimeout(() => {
|
||||||
|
this.filterEditor.toggleDocumentType(documentTypeID)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
private executeBulkOperation(method: string, args): Observable<any> {
|
private executeBulkOperation(method: string, args): Observable<any> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user