fixed missing annotations/redactions
This commit is contained in:
parent
7aa12847bc
commit
4c25cd0483
@ -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] = {};
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user