fixed toasts for file preview
This commit is contained in:
parent
0bd3967a3d
commit
17f5cbbe43
@ -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]
|
||||
});
|
||||
|
||||
|
||||
@ -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') {
|
||||
|
||||
@ -423,7 +423,7 @@
|
||||
},
|
||||
"content": {
|
||||
"text": "Selected text:",
|
||||
"dictionary": "Type",
|
||||
"dictionary": "Dictionary",
|
||||
"reason": "Reason",
|
||||
"legalBasis": "Legal Basis",
|
||||
"comment": "Comment"
|
||||
|
||||
@ -34,6 +34,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
.toast-file-preview {
|
||||
top: 160px;
|
||||
right: 405px;
|
||||
}
|
||||
|
||||
.toast-top-right,
|
||||
.toast-top-left {
|
||||
top: 100px;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user