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 {
|
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;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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];
|
||||||
|
|||||||
@ -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 = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user