fixed ocr resize
This commit is contained in:
parent
13aa19ad02
commit
0ee69c0dec
@ -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() {
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user