mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-08 15:43:38 +00:00
Remove the create link from doc details
This commit is contained in:
4 files changed
+1
-28
No files matched your search
+1
-1
@@ -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 },
|
||||
|
||||
-10
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user