fixed user endpoint, search and annotation remove, file-status refresh

This commit is contained in:
Timo Bejan 2021-08-04 12:10:23 +03:00
parent c3bcec9669
commit 6dec34a126
6 changed files with 7 additions and 6 deletions

View File

@ -28,7 +28,7 @@
<div class="right-content">
<div *ngIf="isReadOnly" [class.justify-center]="!isProcessing" class="read-only d-flex">
<div *ngIf="isProcessing" class="flex-align-items-center">
<span [translate]="fileData.fileStatus.status" class="read-only-text"></span>
<span [translate]="'filestatus.processing'" class="read-only-text"></span>
<mat-progress-bar [mode]="'indeterminate'" class="w-100"></mat-progress-bar>
</div>
<div class="flex-center">

View File

@ -36,7 +36,7 @@ export class RemoveAnnotationsDialogComponent {
}
confirm() {
this.dialogRef.close(this.redactionForm.getRawValue().comment);
this.dialogRef.close({ comment: this.redactionForm.getRawValue().comment });
}
printable(annotation: AnnotationWrapper) {

View File

@ -141,6 +141,7 @@ export class DossierOverviewScreenComponent
}
async ngOnAttach() {
await this._appStateService.reloadActiveDossierFiles();
this._loadEntitiesFromState();
await this.ngOnInit();
this.scrollViewport.scrollTo({ top: this._lastScrollPosition });

View File

@ -44,7 +44,7 @@
</div>
</ng-container>
<div *ngIf="item.unmatched as unmatched" class="small-label">
<div *ngIf="item.unmatched?.length && item.unmatched as unmatched" class="small-label">
<span>
{{ 'search-screen.missing' | translate }}:<span *ngFor="let term of unmatched"
>&nbsp;<s>{{ term }}</s></span

View File

@ -73,10 +73,10 @@ export class AnnotationActionsService {
removeFromDictionary: boolean,
annotationsChanged: EventEmitter<AnnotationWrapper>
) {
this._dialogService.openRemoveFromDictionaryDialog($event, annotations, removeFromDictionary, comment => {
this._dialogService.openRemoveFromDictionaryDialog($event, annotations, removeFromDictionary, result => {
annotations.forEach(annotation => {
this._processObsAndEmit(
this._manualAnnotationService.removeOrSuggestRemoveAnnotation(annotation, removeFromDictionary, comment),
this._manualAnnotationService.removeOrSuggestRemoveAnnotation(annotation, removeFromDictionary, result.comment),
annotation,
annotationsChanged
);

@ -1 +1 @@
Subproject commit 3625e295161fddd62c6f8f45623279773bbb8a16
Subproject commit 1633911e1339b39f96f243885defec4a92b6e6eb