refactored most of the list view; fixes #147, much snappier UX when switching between views

This commit is contained in:
jonaswinkler
2021-02-18 17:29:21 +01:00
parent 0e237fa459
commit 0f80eee54e
6 changed files with 163 additions and 125 deletions

View File

@@ -191,8 +191,8 @@ export class DocumentDetailComponent implements OnInit {
close() {
this.openDocumentService.closeDocument(this.document)
if (this.documentListViewService.savedViewId) {
this.router.navigate(['view', this.documentListViewService.savedViewId])
if (this.documentListViewService.activeSavedViewId) {
this.router.navigate(['view', this.documentListViewService.activeSavedViewId])
} else {
this.router.navigate(['documents'])
}