mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	fixes bug with the + button
This commit is contained in:
		@@ -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)
 | 
			
		||||
      })
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user