mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-30 01:36:09 +00:00
Performance: Enable virtual scrolling for large custom field selects (#10708)
This commit is contained in:
@@ -51,6 +51,7 @@
|
|||||||
<ng-select #fieldSelects
|
<ng-select #fieldSelects
|
||||||
class="paperless-input-select rounded-end"
|
class="paperless-input-select rounded-end"
|
||||||
[items]="getSelectOptionsForField(atom.field)"
|
[items]="getSelectOptionsForField(atom.field)"
|
||||||
|
[virtualScroll]="getSelectOptionsForField(atom.field)?.length > 100"
|
||||||
bindLabel="label"
|
bindLabel="label"
|
||||||
bindValue="id"
|
bindValue="id"
|
||||||
[(ngModel)]="atom.value"
|
[(ngModel)]="atom.value"
|
||||||
|
@@ -19,6 +19,7 @@
|
|||||||
[class.private]="isPrivate"
|
[class.private]="isPrivate"
|
||||||
[clearable]="allowNull"
|
[clearable]="allowNull"
|
||||||
[items]="items"
|
[items]="items"
|
||||||
|
[virtualScroll]="items?.length > 100"
|
||||||
[addTag]="allowCreateNew && addItemRef"
|
[addTag]="allowCreateNew && addItemRef"
|
||||||
addTagText="Add item"
|
addTagText="Add item"
|
||||||
i18n-addTagText="Used for both types, correspondents, storage paths"
|
i18n-addTagText="Used for both types, correspondents, storage paths"
|
||||||
|
Reference in New Issue
Block a user