annotation processing
This commit is contained in:
parent
28a2ecb2ce
commit
345d58d7be
@ -117,7 +117,8 @@ export class DialogService {
|
||||
|
||||
public rejectSuggestion(
|
||||
$event: MouseEvent,
|
||||
annotation: AnnotationWrapper
|
||||
annotation: AnnotationWrapper,
|
||||
rejectCallback: () => void
|
||||
): MatDialogRef<ConfirmationDialogComponent> {
|
||||
$event.stopPropagation();
|
||||
|
||||
@ -128,7 +129,9 @@ export class DialogService {
|
||||
|
||||
ref.afterClosed().subscribe((result) => {
|
||||
if (result) {
|
||||
this._manualAnnotationService.rejectSuggestion(annotation).subscribe(() => {});
|
||||
this._manualAnnotationService.rejectSuggestion(annotation).subscribe(() => {
|
||||
rejectCallback();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@ -271,7 +271,10 @@ export class FilePreviewScreenComponent implements OnInit {
|
||||
|
||||
public rejectSuggestion($event: MouseEvent, annotation: AnnotationWrapper) {
|
||||
this.ngZone.run(() => {
|
||||
this._dialogRef = this._dialogService.rejectSuggestion($event, annotation);
|
||||
this._dialogRef = this._dialogService.rejectSuggestion($event, annotation, () => {
|
||||
console.log('Reject Callback');
|
||||
this.activeViewer.annotManager.deleteAnnotation(annotation.annotation, false, true);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -125,9 +125,7 @@ export class PdfViewerComponent implements OnInit, AfterViewInit, OnChanges {
|
||||
this._configureTextPopup();
|
||||
this._configureHeader();
|
||||
instance.annotManager.on('annotationChanged', (annotations, action) => {
|
||||
if (action === 'add') {
|
||||
this._annotationEventDebouncer.next(annotations);
|
||||
}
|
||||
this._annotationEventDebouncer.next(annotations);
|
||||
});
|
||||
|
||||
instance.annotManager.on('annotationSelected', (annotationList, action) => {
|
||||
|
||||
@ -26,6 +26,10 @@ export interface FileStatus {
|
||||
* The current reviewer's (if any) user id.
|
||||
*/
|
||||
currentReviewer?: string;
|
||||
/**
|
||||
* Shows which dictionary versions was used during the analysis.
|
||||
*/
|
||||
dictionaryVersion?: number;
|
||||
/**
|
||||
* The ID of the file.
|
||||
*/
|
||||
@ -62,6 +66,10 @@ export interface FileStatus {
|
||||
* The ID of the project the file belongs to.
|
||||
*/
|
||||
projectId?: string;
|
||||
/**
|
||||
* Shows which rules versions was used during the analysis.
|
||||
*/
|
||||
rulesVersion?: number;
|
||||
/**
|
||||
* The status of the file with regard to its analysis an review processes.
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user