]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: Only disable split button if pages = 1 (#6304)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Sat, 6 Apr 2024 23:49:00 +0000 (16:49 -0700)
committerGitHub <noreply@github.com>
Sat, 6 Apr 2024 23:49:00 +0000 (23:49 +0000)
src-ui/src/app/components/document-detail/document-detail.component.html

index f3a616fef488e2969a7f9311588eab1bb5f138a1..82db17edb3443e7114a3c4e940c6050e198ad61e 100644 (file)
@@ -51,7 +51,7 @@
         <i-bs width="1em" height="1em" name="diagram-3"></i-bs>&nbsp;<span i18n>More like this</span>
       </button>
 
-      <button ngbDropdownItem (click)="splitDocument()" [disabled]="contentRenderType !== ContentRenderType.PDF || previewNumPages < 2">
+      <button ngbDropdownItem (click)="splitDocument()" [disabled]="contentRenderType !== ContentRenderType.PDF || previewNumPages === 1">
         <i-bs width="1em" height="1em" name="scissors"></i-bs>&nbsp;<span i18n>Split</span>
       </button>