mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-11 17:17:26 +01:00
option to truncate content on /documents endpoint
This commit is contained in:
parent
1e11c12d96
commit
3c48ce0225
4 changed files with 19 additions and 2 deletions
|
|
@ -119,6 +119,9 @@ export class DocumentCardLargeComponent implements OnInit {
|
|||
}
|
||||
|
||||
get contentTrimmed() {
|
||||
return this.document.content.substr(0, 500)
|
||||
return (
|
||||
this.document.content.substr(0, 500) +
|
||||
(this.document.content.length > 500 ? '...' : '')
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue