mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-08 00:57:14 +00:00
option to truncate content on /documents endpoint
This commit is contained in:
1 parent
1e11c12d96
commit
3c48ce0225
4 files changed
+19
-2
No files matched your search
+4
-1
@@ -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 ? '...' : '')
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user