Ok lets make duplicates a tab, nice

This commit is contained in:
shamoon
2026-01-18 12:25:12 -08:00
parent efbd0c1bfa
commit b5413525c4
3 changed files with 37 additions and 21 deletions

View File

@@ -124,6 +124,7 @@ enum DocumentDetailNavIDs {
Notes = 5,
Permissions = 6,
History = 7,
Duplicates = 8,
}
enum ContentRenderType {
@@ -704,6 +705,13 @@ export class DocumentDetailComponent
}
this.title = this.documentTitlePipe.transform(doc.title)
this.prepareForm(doc)
if (
this.activeNavID === DocumentDetailNavIDs.Duplicates &&
!doc?.duplicate_documents?.length
) {
this.activeNavID = DocumentDetailNavIDs.Details
}
}
openDuplicateDocument(documentId: number) {