]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Change: dont show remove button at all from doc link dropdowns if disabled
authorshamoon <4887959+shamoon@users.noreply.github.com>
Sun, 20 Oct 2024 00:23:37 +0000 (17:23 -0700)
committershamoon <4887959+shamoon@users.noreply.github.com>
Sun, 20 Oct 2024 00:23:37 +0000 (17:23 -0700)
src-ui/src/app/components/common/input/document-link/document-link.component.html

index 70b6d82639638318ccaae61b618c30e4c01bd4e0..80feb8bd94dd1f0b405d84fc5c0a4d6864aa6f3f 100644 (file)
@@ -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>&nbsp;<span>{{document.title}}</span>
         </a>