proper navigation when saving documents

This commit is contained in:
Jonas Winkler 2020-10-30 23:17:10 +01:00
parent aee8776e5e
commit 68268f5305

View File

@ -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() {