mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-06 14:55:07 +01:00
Performance: Enable virtual scrolling for large custom field selects (#10708)
This commit is contained in:
parent
4e0f5dff95
commit
d9459ac37f
2 changed files with 2 additions and 0 deletions
|
|
@ -51,6 +51,7 @@
|
|||
<ng-select #fieldSelects
|
||||
class="paperless-input-select rounded-end"
|
||||
[items]="getSelectOptionsForField(atom.field)"
|
||||
[virtualScroll]="getSelectOptionsForField(atom.field)?.length > 100"
|
||||
bindLabel="label"
|
||||
bindValue="id"
|
||||
[(ngModel)]="atom.value"
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
[class.private]="isPrivate"
|
||||
[clearable]="allowNull"
|
||||
[items]="items"
|
||||
[virtualScroll]="items?.length > 100"
|
||||
[addTag]="allowCreateNew && addItemRef"
|
||||
addTagText="Add item"
|
||||
i18n-addTagText="Used for both types, correspondents, storage paths"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue