proper navigation when saving documents
This commit is contained in:
		
							parent
							
								
									1202c84ce5
								
							
						
					
					
						commit
						20e93156bf
					
				@ -167,8 +167,12 @@ export class DocumentDetailComponent implements OnInit {
 | 
			
		||||
 | 
			
		||||
  close() {
 | 
			
		||||
    this.openDocumentService.closeDocument(this.document)
 | 
			
		||||
    if (this.documentListViewService.viewConfig) {
 | 
			
		||||
      this.router.navigate(['view', this.documentListViewService.viewConfig.id])
 | 
			
		||||
    } else {
 | 
			
		||||
      this.router.navigate(['documents'])
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  delete() {
 | 
			
		||||
    let modal = this.modalService.open(DeleteDialogComponent, {backdrop: 'static'})
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user