corrections

This commit is contained in:
Timo Bejan 2022-01-28 13:57:36 +02:00
parent d2dad66d64
commit 417010ae9b
3 changed files with 9 additions and 13 deletions

View File

@ -39,6 +39,7 @@ export class AnnotationsListComponent implements OnChanges {
} }
annotationClicked(annotation: AnnotationWrapper, $event: MouseEvent): void { annotationClicked(annotation: AnnotationWrapper, $event: MouseEvent): void {
console.log(annotation);
if (($event?.target as IqserEventTarget)?.localName === 'input') { if (($event?.target as IqserEventTarget)?.localName === 'input') {
return; return;
} }

View File

@ -147,7 +147,7 @@ export class AnnotationDrawService {
const dossierTemplateId = this._dossiersService.find(dossierId).dossierTemplateId; const dossierTemplateId = this._dossiersService.find(dossierId).dossierTemplateId;
let annotation; let annotation;
if (annotationWrapper.value === 'Rectangle' || annotationWrapper.isImage) { if (annotationWrapper.rectangle || annotationWrapper.isImage) {
annotation = new activeViewer.Core.Annotations.RectangleAnnotation(); annotation = new activeViewer.Core.Annotations.RectangleAnnotation();
const pageHeight = activeViewer.Core.documentViewer.getPageHeight(pageNumber); const pageHeight = activeViewer.Core.documentViewer.getPageHeight(pageNumber);
const firstPosition = annotationWrapper.positions[0]; const firstPosition = annotationWrapper.positions[0];

View File

@ -193,10 +193,6 @@ export class ManualAnnotationService extends GenericService<IManualAddResponse>
if (this._permissionsService.isApprover(this._dossier(file))) { if (this._permissionsService.isApprover(this._dossier(file))) {
// if it was something manual simply decline the existing request // if it was something manual simply decline the existing request
if (annotationWrapper.type === 'manual') {
mode = 'undo';
body = annotationWrapper.id;
} else {
mode = 'remove'; mode = 'remove';
body = { body = {
annotationId: annotationWrapper.id, annotationId: annotationWrapper.id,
@ -204,7 +200,6 @@ export class ManualAnnotationService extends GenericService<IManualAddResponse>
comment: comment, comment: comment,
}; };
removeDict = removeFromDictionary; removeDict = removeFromDictionary;
}
} else { } else {
mode = 'request-remove'; mode = 'request-remove';
body = { body = {