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 {
console.log(annotation);
if (($event?.target as IqserEventTarget)?.localName === 'input') {
return;
}

View File

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

View File

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