mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	fixes bug with the + button
This commit is contained in:
		
							parent
							
								
									ac1cfff158
								
							
						
					
					
						commit
						b14fd52b8b
					
				@ -86,7 +86,7 @@ export class TagsComponent implements OnInit, ControlValueAccessor {
 | 
			
		||||
    var modal = this.modalService.open(TagEditDialogComponent, {backdrop: 'static'})
 | 
			
		||||
    modal.componentInstance.dialogMode = 'create'
 | 
			
		||||
    modal.componentInstance.success.subscribe(newTag => {
 | 
			
		||||
      this.tagService.list().subscribe(tags => {
 | 
			
		||||
      this.tagService.listAll().subscribe(tags => {
 | 
			
		||||
        this.tags = tags.results
 | 
			
		||||
        this.addTag(newTag.id)
 | 
			
		||||
      })
 | 
			
		||||
 | 
			
		||||
@ -89,7 +89,7 @@ export class DocumentDetailComponent implements OnInit {
 | 
			
		||||
    var modal = this.modalService.open(DocumentTypeEditDialogComponent, {backdrop: 'static'})
 | 
			
		||||
    modal.componentInstance.dialogMode = 'create'
 | 
			
		||||
    modal.componentInstance.success.subscribe(newDocumentType => {
 | 
			
		||||
      this.documentTypeService.list().subscribe(documentTypes => {
 | 
			
		||||
      this.documentTypeService.listAll().subscribe(documentTypes => {
 | 
			
		||||
        this.documentTypes = documentTypes.results
 | 
			
		||||
        this.documentForm.get('document_type_id').setValue(newDocumentType.id)
 | 
			
		||||
      })
 | 
			
		||||
@ -100,7 +100,7 @@ export class DocumentDetailComponent implements OnInit {
 | 
			
		||||
    var modal = this.modalService.open(CorrespondentEditDialogComponent, {backdrop: 'static'})
 | 
			
		||||
    modal.componentInstance.dialogMode = 'create'
 | 
			
		||||
    modal.componentInstance.success.subscribe(newCorrespondent => {
 | 
			
		||||
      this.correspondentService.list().subscribe(correspondents => {
 | 
			
		||||
      this.correspondentService.listAll().subscribe(correspondents => {
 | 
			
		||||
        this.correspondents = correspondents.results
 | 
			
		||||
        this.documentForm.get('correspondent_id').setValue(newCorrespondent.id)
 | 
			
		||||
      })
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user