From 584082a1dfd73963a31562bac27b7df503318667 Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 4 May 2022 22:31:09 -0700 Subject: [PATCH] Add query params for saved views --- .../saved-view-widget.component.ts | 5 +- .../document-list.component.html | 2 +- .../document-list/document-list.component.ts | 68 +++++++++++-------- 3 files changed, 45 insertions(+), 30 deletions(-) diff --git a/src-ui/src/app/components/dashboard/widgets/saved-view-widget/saved-view-widget.component.ts b/src-ui/src/app/components/dashboard/widgets/saved-view-widget/saved-view-widget.component.ts index e677a6e2f..b8bf389dd 100644 --- a/src-ui/src/app/components/dashboard/widgets/saved-view-widget/saved-view-widget.component.ts +++ b/src-ui/src/app/components/dashboard/widgets/saved-view-widget/saved-view-widget.component.ts @@ -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 }, + }) } } diff --git a/src-ui/src/app/components/document-list/document-list.component.html b/src-ui/src/app/components/document-list/document-list.component.html index 1ce61f931..f3e5605eb 100644 --- a/src-ui/src/app/components/document-list/document-list.component.html +++ b/src-ui/src/app/components/document-list/document-list.component.html @@ -64,7 +64,7 @@