mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-06 06:45:05 +01:00
proper navigation when saving documents
This commit is contained in:
parent
1202c84ce5
commit
20e93156bf
1 changed files with 5 additions and 1 deletions
|
|
@ -167,7 +167,11 @@ export class DocumentDetailComponent implements OnInit {
|
|||
|
||||
close() {
|
||||
this.openDocumentService.closeDocument(this.document)
|
||||
this.router.navigate(['documents'])
|
||||
if (this.documentListViewService.viewConfig) {
|
||||
this.router.navigate(['view', this.documentListViewService.viewConfig.id])
|
||||
} else {
|
||||
this.router.navigate(['documents'])
|
||||
}
|
||||
}
|
||||
|
||||
delete() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue