A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Change: dont show remove button at all from doc link dropdowns if disabled
shamoon1cb85d41f36a
diff --git a/src-ui/src/app/components/common/input/document-link/document-link.component.html b/src-ui/src/app/components/common/input/document-link/document-link.component.htmlindex 70b6d8263..80feb8bd9 100644--- a/src-ui/src/app/components/common/input/document-link/document-link.component.html+++ b/src-ui/src/app/components/common/input/document-link/document-link.component.html@@ -40,7 +40,7 @@(change)="onChange(selectedDocuments)"><ng-template ng-label-tmp let-document="item"><div class="d-flex align-items-center">- <button class="btn p-0 lh-1" [disabled]="disabled" (click)="unselect(document)" title="Remove link" i18n-title><i-bs name="x"></i-bs></button>+ <button class="btn p-0 lh-1" *ngIf="!disabled" (click)="unselect(document)" title="Remove link" i18n-title><i-bs name="x"></i-bs></button><a routerLink="/documents/{{document.id}}" class="badge bg-light text-primary" (mousedown)="$event.stopImmediatePropagation();" title="Open link" i18n-title><i-bs width="0.9em" height="0.9em" name="file-text"></i-bs> <span>{{document.title}}</span></a>