mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Update deprecated edit-dialog rxjs
This commit is contained in:
		@@ -92,16 +92,16 @@ export abstract class EditDialogComponent<T extends ObjectWithId>
 | 
			
		||||
        break
 | 
			
		||||
    }
 | 
			
		||||
    this.networkActive = true
 | 
			
		||||
    serverResponse.subscribe(
 | 
			
		||||
      (result) => {
 | 
			
		||||
    serverResponse.subscribe({
 | 
			
		||||
      next: (result) => {
 | 
			
		||||
        this.activeModal.close()
 | 
			
		||||
        this.success.emit(result)
 | 
			
		||||
      },
 | 
			
		||||
      (error) => {
 | 
			
		||||
      error: (error) => {
 | 
			
		||||
        this.error = error.error
 | 
			
		||||
        this.networkActive = false
 | 
			
		||||
      }
 | 
			
		||||
    )
 | 
			
		||||
      },
 | 
			
		||||
    })
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  cancel() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user