mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-07-30 18:27:45 -05:00
Feature: page count (#7750)
--------- Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
@@ -26,6 +26,7 @@ export enum DisplayField {
|
||||
OWNER = 'owner',
|
||||
SHARED = 'shared',
|
||||
ASN = 'asn',
|
||||
PAGE_COUNT = 'pagecount',
|
||||
}
|
||||
|
||||
export const DEFAULT_DISPLAY_FIELDS = [
|
||||
@@ -73,6 +74,10 @@ export const DEFAULT_DISPLAY_FIELDS = [
|
||||
id: DisplayField.ASN,
|
||||
name: $localize`ASN`,
|
||||
},
|
||||
{
|
||||
id: DisplayField.PAGE_COUNT,
|
||||
name: $localize`Pages`,
|
||||
},
|
||||
]
|
||||
|
||||
export const DEFAULT_DASHBOARD_VIEW_PAGE_SIZE = 10
|
||||
@@ -94,6 +99,7 @@ export const DOCUMENT_SORT_FIELDS = [
|
||||
{ field: 'modified', name: $localize`Modified` },
|
||||
{ field: 'num_notes', name: $localize`Notes` },
|
||||
{ field: 'owner', name: $localize`Owner` },
|
||||
{ field: 'page_count', name: $localize`Pages` },
|
||||
]
|
||||
|
||||
export const DOCUMENT_SORT_FIELDS_FULLTEXT = [
|
||||
@@ -164,4 +170,6 @@ export interface Document extends ObjectWithPermissions {
|
||||
|
||||
// write-only field
|
||||
remove_inbox_tags?: boolean
|
||||
|
||||
page_count?: number
|
||||
}
|
||||
|
Reference in New Issue
Block a user