From b7c7e293f75470c957811fc585e70458bc61eb0a Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 28 Apr 2023 08:14:24 -0700 Subject: [PATCH] Doc detail tab switch fixes --- .../components/document-detail/document-detail.component.html | 2 +- .../components/document-detail/document-detail.component.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src-ui/src/app/components/document-detail/document-detail.component.html b/src-ui/src/app/components/document-detail/document-detail.component.html index 71092fe72..7b21d4b50 100644 --- a/src-ui/src/app/components/document-detail/document-detail.component.html +++ b/src-ui/src/app/components/document-detail/document-detail.component.html @@ -100,7 +100,7 @@ Metadata - +
diff --git a/src-ui/src/app/components/document-detail/document-detail.component.ts b/src-ui/src/app/components/document-detail/document-detail.component.ts index 6d03ec024..9b23aa047 100644 --- a/src-ui/src/app/components/document-detail/document-detail.component.ts +++ b/src-ui/src/app/components/document-detail/document-detail.component.ts @@ -317,6 +317,10 @@ export class DocumentDetailComponent if (navIDKey) { this.activeNavID = DocumentDetailNavIDs[navIDKey] } + } else if (paramMap.get('id')) { + this.router.navigate(['documents', +paramMap.get('id'), 'details'], { + replaceUrl: true, + }) } }) }
Date modified