corrections
This commit is contained in:
parent
d2dad66d64
commit
417010ae9b
@ -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;
|
||||
}
|
||||
|
||||
@ -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];
|
||||
|
||||
@ -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 = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user