added OCR processing as separate state

This commit is contained in:
Timo 2021-03-31 09:59:45 +03:00
parent a6c75d6e40
commit 903f78c2df
5 changed files with 9 additions and 2 deletions

View File

@ -89,7 +89,7 @@ export class FileStatusWrapper {
}
get status() {
return this.fileStatus.status === 'REPROCESS' || this.fileStatus.status === 'OCR_PROCESSING' ? 'PROCESSING' : this.fileStatus.status;
return this.fileStatus.status === 'REPROCESS' ? 'PROCESSING' : this.fileStatus.status;
}
get numberOfPages() {

View File

@ -32,7 +32,7 @@
length: val.value,
color: val.color,
label: getLabel(val),
cssClass: val.color === 'PROCESSING' ? 'loading' : ''
cssClass: val.color === 'PROCESSING' || val.color === 'OCR_PROCESSING' ? 'loading' : ''
}
]"
>

View File

@ -3,6 +3,7 @@ export const StatusSorter = {
UNPROCESSED: 1,
REPROCESS: 5,
PROCESSING: 5,
OCR_PROCESSING: 7,
UNASSIGNED: 10,
UNDER_REVIEW: 15,

View File

@ -452,6 +452,7 @@
"UNPROCESSED": "Unprocessed",
"REPROCESS": "Processing",
"PROCESSING": "Processing",
"OCR_PROCESSING": "OCR Processing",
"ERROR": "Re-processing required",
"UNASSIGNED": "Unassigned",
"UNDER_REVIEW": "Under Review",

View File

@ -126,6 +126,11 @@
background-color: $grey-1;
}
.OCR_PROCESSING {
stroke: $green-2;
background-color: $green-2;
}
.REPROCESS {
stroke: $grey-1;
background-color: $grey-1;