Merge branch 'master' into VM/ForceReanalyseAction
This commit is contained in:
commit
6b802a769e
@ -177,7 +177,22 @@ export class DossierOverviewBulkActionsComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
approveDocuments() {
|
approveDocuments() {
|
||||||
this._performBulkAction(this._fileActionService.setFileApproved(this.selectedFiles));
|
const foundUpdatedFile = this.selectedFiles.find(file => file.hasUpdates);
|
||||||
|
if (foundUpdatedFile) {
|
||||||
|
this._dialogService.openDialog(
|
||||||
|
'confirm',
|
||||||
|
null,
|
||||||
|
new ConfirmationDialogInput({
|
||||||
|
title: _('confirmation-dialog.approve-multiple-files.title'),
|
||||||
|
question: _('confirmation-dialog.approve-multiple-files.question')
|
||||||
|
}),
|
||||||
|
() => {
|
||||||
|
this._performBulkAction(this._fileActionService.setFileApproved(this.selectedFiles));
|
||||||
|
}
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
this._performBulkAction(this._fileActionService.setFileApproved(this.selectedFiles));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
assignToMe() {
|
assignToMe() {
|
||||||
|
|||||||
@ -157,9 +157,21 @@ export class FileActionsComponent extends AutoUnsubscribe implements OnInit, OnD
|
|||||||
|
|
||||||
setFileApproved($event: MouseEvent) {
|
setFileApproved($event: MouseEvent) {
|
||||||
$event.stopPropagation();
|
$event.stopPropagation();
|
||||||
this.addSubscription = this._fileActionService.setFileApproved(this.fileStatus).subscribe(() => {
|
if (this.fileStatus.hasUpdates) {
|
||||||
this.reloadDossiers('set-approved');
|
this._dialogService.openDialog(
|
||||||
});
|
'confirm',
|
||||||
|
$event,
|
||||||
|
new ConfirmationDialogInput({
|
||||||
|
title: _('confirmation-dialog.approve-file.title'),
|
||||||
|
question: _('confirmation-dialog.approve-file.question')
|
||||||
|
}),
|
||||||
|
() => {
|
||||||
|
this._setFileApproved();
|
||||||
|
}
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
this._setFileApproved();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ocrFile($event: MouseEvent) {
|
ocrFile($event: MouseEvent) {
|
||||||
@ -203,6 +215,12 @@ export class FileActionsComponent extends AutoUnsubscribe implements OnInit, OnD
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private _setFileApproved() {
|
||||||
|
this.addSubscription = this._fileActionService.setFileApproved(this.fileStatus).subscribe(() => {
|
||||||
|
this.reloadDossiers('set-approved');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
private _setup() {
|
private _setup() {
|
||||||
this.statusBarConfig = [{ color: this.fileStatus.status, length: 1 }];
|
this.statusBarConfig = [{ color: this.fileStatus.status, length: 1 }];
|
||||||
this.tooltipPosition = this.screen === 'file-preview' ? 'below' : 'above';
|
this.tooltipPosition = this.screen === 'file-preview' ? 'below' : 'above';
|
||||||
|
|||||||
@ -363,6 +363,14 @@
|
|||||||
"warning": "Warning: this cannot be undone!"
|
"warning": "Warning: this cannot be undone!"
|
||||||
},
|
},
|
||||||
"confirmation-dialog": {
|
"confirmation-dialog": {
|
||||||
|
"approve-file": {
|
||||||
|
"question": "This document has unseen changes, do you wish to approve it anyway?",
|
||||||
|
"title": "Warning!"
|
||||||
|
},
|
||||||
|
"approve-multiple-files": {
|
||||||
|
"question": "At least one of the files you selected has unseen changes, do you wish to approve them anyway?",
|
||||||
|
"title": "Warning!"
|
||||||
|
},
|
||||||
"assign-file-to-me": {
|
"assign-file-to-me": {
|
||||||
"question": "This document is currently reviewed by someone else. Do you want to become the reviewer and assign yourself to this document?",
|
"question": "This document is currently reviewed by someone else. Do you want to become the reviewer and assign yourself to this document?",
|
||||||
"title": "Re-assign reviewer"
|
"title": "Re-assign reviewer"
|
||||||
@ -861,13 +869,13 @@
|
|||||||
"unsaved-changes": "You have unsaved changes. Save or revert before changing the tab."
|
"unsaved-changes": "You have unsaved changes. Save or revert before changing the tab."
|
||||||
},
|
},
|
||||||
"error": {
|
"error": {
|
||||||
|
"close": "Close",
|
||||||
"http": {
|
"http": {
|
||||||
"generic": "Action failed with code {status}"
|
"generic": "Action failed with code {status}"
|
||||||
},
|
},
|
||||||
"reload": "Reload",
|
|
||||||
"title": "Oops! Something went wrong...",
|
|
||||||
"offline": "You're offline",
|
"offline": "You're offline",
|
||||||
"close": "Close"
|
"reload": "Reload",
|
||||||
|
"title": "Oops! Something went wrong..."
|
||||||
},
|
},
|
||||||
"exact-date": "{day} {month} {year} at {hour}:{minute}",
|
"exact-date": "{day} {month} {year} at {hour}:{minute}",
|
||||||
"file": "File",
|
"file": "File",
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "redaction",
|
"name": "redaction",
|
||||||
"version": "2.222.0",
|
"version": "2.223.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user