fixed ocr resize

This commit is contained in:
Timo Bejan 2021-11-17 19:47:17 +02:00
parent 13aa19ad02
commit 0ee69c0dec
3 changed files with 13 additions and 3 deletions

View File

@ -130,7 +130,17 @@ export class AnnotationWrapper {
}
get isSuggestion() {
return this.isSuggestionAdd || this.isSuggestionRemove || this.isSuggestionChangeLegalBasis || this.isSuggestionRecategorizeImage;
return (
this.isSuggestionAdd ||
this.isSuggestionRemove ||
this.isSuggestionChangeLegalBasis ||
this.isSuggestionRecategorizeImage ||
this.isSuggestionResize
);
}
get isSuggestionResize() {
return this.superType === 'suggestion-resize';
}
get isSuggestionRecategorizeImage() {

View File

@ -46,6 +46,7 @@ export class CommentsComponent {
this.annotation.comments.push({
text: value,
id: commentId,
annotationId: this.annotation.id,
user: this._userService.currentUser.id,
});
this._input.reset();

View File

@ -393,6 +393,7 @@ export class AnnotationActionsService {
const annotationManager = viewer.Core.annotationManager;
const viewerAnnotation = annotationManager.getAnnotationById(annotationWrapper.id);
viewerAnnotation.ReadOnly = false;
viewerAnnotation.Hidden = false;
viewerAnnotation.setRotationControlEnabled(false);
annotationManager.redrawAnnotation(viewerAnnotation);
annotationManager.selectAnnotation(viewerAnnotation);
@ -469,8 +470,6 @@ export class AnnotationActionsService {
value: text,
};
console.log(resizeRequest);
this._processObsAndEmit(
this._manualAnnotationService.resizeOrSuggestToResize(annotationWrapper, resizeRequest),
annotationWrapper,