Add query params for saved views

This commit is contained in:
Michael Shamoon
2022-05-04 22:31:09 -07:00
parent 39be1bb7b4
commit 754c657e1f
3 changed files with 45 additions and 30 deletions

View File

@@ -60,8 +60,9 @@ export class SavedViewWidgetComponent implements OnInit, OnDestroy {
if (this.savedView.show_in_sidebar) {
this.router.navigate(['view', this.savedView.id])
} else {
this.list.loadSavedView(this.savedView, true)
this.router.navigate(['documents'])
this.router.navigate(['documents'], {
queryParams: { view: this.savedView.id },
})
}
}