mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	option to truncate content on /documents endpoint
This commit is contained in:
		| @@ -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 ? '...' : '') | ||||
|     ) | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -213,7 +213,8 @@ export class DocumentListViewService { | ||||
|         this.currentPageSize, | ||||
|         activeListViewState.sortField, | ||||
|         activeListViewState.sortReverse, | ||||
|         activeListViewState.filterRules | ||||
|         activeListViewState.filterRules, | ||||
|         { truncate_content: true } | ||||
|       ) | ||||
|       .subscribe({ | ||||
|         next: (result) => { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Michael Shamoon
					Michael Shamoon