fixed toasts for file preview

This commit is contained in:
Timo Bejan 2020-11-17 13:29:17 +02:00
parent 0bd3967a3d
commit 17f5cbbe43
4 changed files with 11 additions and 3 deletions

View File

@ -77,7 +77,7 @@ export class ManualAnnotationDialogComponent implements OnInit {
this.isDictionaryRequest = this.manualRedactionEntryWrapper.type === 'DICTIONARY';
this.redactionForm = this._formBuilder.group({
reason: this.isDictionaryRequest ? [null] : [null, Validators.required],
dictionary: this.isDictionaryRequest ? [null] : ['manual', Validators.required],
dictionary: this.isDictionaryRequest ? [null, Validators.required] : ['manual', Validators.required],
comment: this.isDocumentAdmin ? [null] : [null, Validators.required]
});

View File

@ -185,7 +185,10 @@ export class ManualAnnotationService {
}
private _notify(key: string, type: NotificationType = NotificationType.SUCCESS, data?: any) {
this._notificationService.showToastNotification(this._translateService.instant(key, data), null, type);
this._notificationService.showToastNotification(this._translateService.instant(key, data), null, type, {
positionClass: 'toast-file-preview',
actions: []
});
}
getTitle(type: 'DICTIONARY' | 'REDACTION') {

View File

@ -423,7 +423,7 @@
},
"content": {
"text": "Selected text:",
"dictionary": "Type",
"dictionary": "Dictionary",
"reason": "Reason",
"legalBasis": "Legal Basis",
"comment": "Comment"

View File

@ -34,6 +34,11 @@
}
}
.toast-file-preview {
top: 160px;
right: 405px;
}
.toast-top-right,
.toast-top-left {
top: 100px;