mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-04 03:27:12 -05:00 
			
		
		
		
	Just start the frontend
[ci skip]
This commit is contained in:
		
							parent
							
								
									05896d5b70
								
							
						
					
					
						commit
						e8090fd030
					
				@ -74,6 +74,7 @@ import { CustomFieldsService } from 'src/app/services/rest/custom-fields.service
 | 
				
			|||||||
import { DocumentTypeService } from 'src/app/services/rest/document-type.service'
 | 
					import { DocumentTypeService } from 'src/app/services/rest/document-type.service'
 | 
				
			||||||
import { DocumentService } from 'src/app/services/rest/document.service'
 | 
					import { DocumentService } from 'src/app/services/rest/document.service'
 | 
				
			||||||
import { StoragePathService } from 'src/app/services/rest/storage-path.service'
 | 
					import { StoragePathService } from 'src/app/services/rest/storage-path.service'
 | 
				
			||||||
 | 
					import { TagService } from 'src/app/services/rest/tag.service'
 | 
				
			||||||
import { UserService } from 'src/app/services/rest/user.service'
 | 
					import { UserService } from 'src/app/services/rest/user.service'
 | 
				
			||||||
import { SettingsService } from 'src/app/services/settings.service'
 | 
					import { SettingsService } from 'src/app/services/settings.service'
 | 
				
			||||||
import { ToastService } from 'src/app/services/toast.service'
 | 
					import { ToastService } from 'src/app/services/toast.service'
 | 
				
			||||||
@ -641,6 +642,9 @@ export class DocumentDetailComponent
 | 
				
			|||||||
        PermissionType.Document
 | 
					        PermissionType.Document
 | 
				
			||||||
      )
 | 
					      )
 | 
				
			||||||
    ) {
 | 
					    ) {
 | 
				
			||||||
 | 
					      this.tagService.getCachedMany(doc.tags).subscribe((tags) => {
 | 
				
			||||||
 | 
					        // only show suggestions if document has inbox tags
 | 
				
			||||||
 | 
					        if (tags.some((tag) => tag.is_inbox_tag)) {
 | 
				
			||||||
          this.documentsService
 | 
					          this.documentsService
 | 
				
			||||||
            .getSuggestions(doc.id)
 | 
					            .getSuggestions(doc.id)
 | 
				
			||||||
            .pipe(
 | 
					            .pipe(
 | 
				
			||||||
@ -661,6 +665,8 @@ export class DocumentDetailComponent
 | 
				
			|||||||
              },
 | 
					              },
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					      })
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    this.title = this.documentTitlePipe.transform(doc.title)
 | 
					    this.title = this.documentTitlePipe.transform(doc.title)
 | 
				
			||||||
    const docFormValues = Object.assign({}, doc)
 | 
					    const docFormValues = Object.assign({}, doc)
 | 
				
			||||||
    docFormValues['permissions_form'] = {
 | 
					    docFormValues['permissions_form'] = {
 | 
				
			||||||
 | 
				
			|||||||
@ -1,4 +1,6 @@
 | 
				
			|||||||
export interface DocumentSuggestions {
 | 
					export interface DocumentSuggestions {
 | 
				
			||||||
 | 
					  title?: string
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  tags?: number[]
 | 
					  tags?: number[]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  correspondents?: number[]
 | 
					  correspondents?: number[]
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user