A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
better selection
jonaswinkler25fb9fb185e2
diff --git a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.htmlindex ac015cc52..c1757eb35 100644--- a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html+++ b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.html@@ -1,11 +1,11 @@<div class="card mb-3 bg-light shadow-sm" [class.card-selected]="selected" [class.document-card]="selectable"><div class="row no-gutters"><div class="col-md-2 d-none d-lg-block doc-img-background" [class.doc-img-background-selected]="selected">- <img [src]="getThumbUrl()" class="card-img doc-img border-right" (click)="selected = selectable ? !selected : false">+ <img [src]="getThumbUrl()" class="card-img doc-img border-right" (click)="setSelected(selectable ? !selected : false)"><div style="top: 0; left: 0" class="position-absolute border-right border-bottom bg-light p-1" [class.document-card-check]="!selected"><div class="custom-control custom-checkbox">- <input type="checkbox" class="custom-control-input" id="smallCardCheck{{document.id}}" [checked]="selected" (change)="selected = $event.target.checked">+ <input type="checkbox" class="custom-control-input" id="smallCardCheck{{document.id}}" [checked]="selected" (change)="setSelected($event.target.checked)"><label class="custom-control-label" for="smallCardCheck{{document.id}}"></label></div></div>diff --git a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.ts b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.tsindex 336af41da..e3bd4b7f7 100644--- a/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.ts+++ b/src-ui/src/app/components/document-list/document-card-large/document-card-large.component.ts@@ -12,15 +12,11 @@ export class DocumentCardLargeComponent implements OnInit {constructor(private documentService: DocumentService, private sanitizer: DomSanitizer) { }- _selected = false-- get selected() {- return this._selected- }-@Input()- set selected(value: boolean) {- this._selected = value+ selected = false++ setSelected(value: boolean) {+ this.selected = valuethis.selectedChange.emit(value)}diff --git a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.htmlindex 4fd155559..a423252ee 100644--- a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html+++ b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.html@@ -1,11 +1,11 @@<div class="col p-2 h-100 document-card"><div class="card h-100 shadow-sm" [class.card-selected]="selected"><div class="border-bottom" [class.doc-img-background-selected]="selected">- <img class="card-img doc-img" [src]="getThumbUrl()" (click)="selected = !selected">+ <img class="card-img doc-img" [src]="getThumbUrl()" (click)="setSelected(!selected)"><div style="top: 0; left: 0" class="position-absolute border-right border-bottom bg-light p-1" [class.document-card-check]="!selected"><div class="custom-control custom-checkbox">- <input type="checkbox" class="custom-control-input" id="smallCardCheck{{document.id}}" [checked]="selected" (change)="selected = $event.target.checked">+ <input type="checkbox" class="custom-control-input" id="smallCardCheck{{document.id}}" [checked]="selected" (change)="setSelected($event.target.checked)"><label class="custom-control-label" for="smallCardCheck{{document.id}}"></label></div></div>diff --git a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.ts b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.tsindex 6b7f86614..ed69c5c50 100644--- a/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.ts+++ b/src-ui/src/app/components/document-list/document-card-small/document-card-small.component.ts@@ -12,15 +12,11 @@ export class DocumentCardSmallComponent implements OnInit {constructor(private documentService: DocumentService) { }- _selected = false-- get selected() {- return this._selected- }-@Input()- set selected(value: boolean) {- this._selected = value+ selected = false++ setSelected(value: boolean) {+ this.selected = valuethis.selectedChange.emit(value)}