fixed missing annotations/redactions

This commit is contained in:
Timo 2021-01-19 18:20:15 +02:00
parent 7aa12847bc
commit 4c25cd0483
4 changed files with 7 additions and 4 deletions

View File

@ -24,7 +24,7 @@ export function handleFilterDelta(oldFilters: FilterModel[], newFilters: FilterM
if (!oldFilter) {
for (const childFilter of newFilter.filters) {
const oldFilterChild = oldFilter.filters.find((f) => f.key === childFilter.key);
const oldFilterChild = oldFilter?.filters.find((f) => f.key === childFilter.key);
if (!oldFilterChild || oldFilterChild.matches !== childFilter.matches) {
if (!newFiltersDelta[newFilter.key]) {
newFiltersDelta[newFilter.key] = {};

View File

@ -59,7 +59,9 @@ export class FileDataModel {
// a redaction-log entry is marked as a reason for another entry - hide it
if (!!markedAsReasonRedactionLogEntry) {
markedAsReasonRedactionLogEntry.hidden = true;
if (!(this._hasAlreadyBeenProcessed(manual) && manual.status === 'APPROVED')) {
markedAsReasonRedactionLogEntry.hidden = true;
}
}
// an entry for this request already exists in the redactionLog

View File

@ -352,6 +352,7 @@ export class PdfViewerComponent implements OnInit, AfterViewInit, OnChanges {
}
private toPosition(page: number, selectedQuad: any): Rectangle {
console.log(selectedQuad);
const pageHeight = this.instance.docViewer.getPageHeight(page);
const height = selectedQuad.y2 - selectedQuad.y4;
return {

View File

@ -1,5 +1,5 @@
{
"OAUTH_URL": "https://redkc-staging.iqser.cloud/auth/realms/redaction",
"OAUTH_URL": "https://redqa-auth.iqser.cloud/auth/realms/redaction",
"OAUTH_CLIENT_ID": "redaction",
"API_URL": "https://redapi-staging.iqser.cloud"
"API_URL": "https://redqa-api.iqser.cloud"
}