Merge branch 'RED-7316' into 'master'
Resolve RED-7316 Closes RED-7316 See merge request redactmanager/red-ui!252
This commit is contained in:
commit
76f95c5eb6
@ -37,7 +37,7 @@ export class AnnotationDrawService {
|
||||
|
||||
async draw(annotations: List<AnnotationWrapper>, hideSkipped: boolean, dossierTemplateId: string) {
|
||||
try {
|
||||
return this._pdf.runWithCleanup(() => this.#draw(annotations, hideSkipped, dossierTemplateId));
|
||||
await this.#draw(annotations, hideSkipped, dossierTemplateId);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
@ -175,7 +175,6 @@ export class AnnotationDrawService {
|
||||
|
||||
const appliedRedactionColor = this._defaultColorsService.getColor(dossierTemplateId, 'appliedRedactionColor');
|
||||
annotation.setCustomData('appliedRedactionColor', String(appliedRedactionColor));
|
||||
|
||||
return annotation;
|
||||
}
|
||||
|
||||
|
||||
@ -151,13 +151,6 @@ export class PdfViewer {
|
||||
}
|
||||
|
||||
await this.runWithCleanup(async () => {
|
||||
try {
|
||||
await this.PDFNet.initialize(this.#licenseKey);
|
||||
} catch (e) {
|
||||
this._errorService.set(e);
|
||||
throw e;
|
||||
}
|
||||
|
||||
this.#instance.UI.setTheme(this._userPreferenceService.getTheme());
|
||||
this._logger.info('[PDF] Initialized');
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user