Remove the create link from doc details

This commit is contained in:
shamoon committed 2026-10-20 08:11:40 -07:00
1 parent 7055f7a745
commit 3ed9586347
4 files changed
+1 -28

No files matched your search

@@ -53,7 +53,7 @@ describe('OcrTemplateEditorComponent', () => {
providers: [
{
provide: ActivatedRoute,
useValue: { snapshot: { paramMap: new Map(), queryParams: {} } },
useValue: { snapshot: { paramMap: new Map() } },
},
{ provide: DocumentService, useValue: documents },
{ provide: OcrTemplateService, useValue: templates },
@@ -345,16 +345,6 @@ export class OcrTemplateEditorComponent
this.markSaved()
})
} else {
const qp = this.route.snapshot.queryParams
if (qp['document_type']) {
this.template.document_type = parseInt(qp['document_type'])
}
if (qp['sample_document']) {
const docId = parseInt(qp['sample_document'])
this.template.sample_document = docId
this.previewDocId = docId
this.loadPreview()
}
this.markSaved()
}
}