stupid
This commit is contained in:
parent
295e48e8ee
commit
ad659fca7c
@ -297,7 +297,7 @@ export class PdfViewerComponent implements OnInit, OnChanges {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private _setSelectionMode(): void {
|
private _setSelectionMode(): void {
|
||||||
const textTool = (<unknown>this.instance.Core.Tools.TextTool) as TextTool;
|
const textTool = (<unknown> this.instance.Core.Tools.TextTool) as TextTool;
|
||||||
textTool.SELECTION_MODE = this._configService.values.SELECTION_MODE;
|
textTool.SELECTION_MODE = this._configService.values.SELECTION_MODE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -518,7 +518,6 @@ export class PdfViewerComponent implements OnInit, OnChanges {
|
|||||||
onClick: () => {
|
onClick: () => {
|
||||||
const selectedQuads = this.instance.Core.documentViewer.getSelectedTextQuads();
|
const selectedQuads = this.instance.Core.documentViewer.getSelectedTextQuads();
|
||||||
const text = this.instance.Core.documentViewer.getSelectedText();
|
const text = this.instance.Core.documentViewer.getSelectedText();
|
||||||
console.log(selectedQuads);
|
|
||||||
const mre = this._getManualRedactionEntry(selectedQuads, text, true);
|
const mre = this._getManualRedactionEntry(selectedQuads, text, true);
|
||||||
this.manualAnnotationRequested.emit(
|
this.manualAnnotationRequested.emit(
|
||||||
new ManualRedactionEntryWrapper(this.instance.Core.documentViewer.getSelectedTextQuads(), mre, 'REDACTION'),
|
new ManualRedactionEntryWrapper(this.instance.Core.documentViewer.getSelectedTextQuads(), mre, 'REDACTION'),
|
||||||
@ -562,7 +561,6 @@ export class PdfViewerComponent implements OnInit, OnChanges {
|
|||||||
for (const key of Object.keys(quads)) {
|
for (const key of Object.keys(quads)) {
|
||||||
for (const quad of quads[key]) {
|
for (const quad of quads[key]) {
|
||||||
const page = parseInt(key, 10);
|
const page = parseInt(key, 10);
|
||||||
console.log(quad);
|
|
||||||
entry.positions.push(this.utils.toPosition(page, convertQuads ? this.utils.translateQuads(page, quad) : quad));
|
entry.positions.push(this.utils.toPosition(page, convertQuads ? this.utils.translateQuads(page, quad) : quad));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -39,8 +39,7 @@ import { DossiersService } from '@services/entity-services/dossiers.service';
|
|||||||
})
|
})
|
||||||
export class DossiersListingScreenComponent
|
export class DossiersListingScreenComponent
|
||||||
extends ListingComponent<Dossier>
|
extends ListingComponent<Dossier>
|
||||||
implements OnInit, AfterViewInit, OnDestroy, OnAttach, OnDetach
|
implements OnInit, AfterViewInit, OnDestroy, OnAttach, OnDetach {
|
||||||
{
|
|
||||||
readonly currentUser = this._userService.currentUser;
|
readonly currentUser = this._userService.currentUser;
|
||||||
readonly tableColumnConfigs = this._configService.tableConfig;
|
readonly tableColumnConfigs = this._configService.tableConfig;
|
||||||
readonly tableHeaderLabel = _('dossier-listing.table-header.title');
|
readonly tableHeaderLabel = _('dossier-listing.table-header.title');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user