]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Update pdf-editor.component.ts
authorshamoon <4887959+shamoon@users.noreply.github.com>
Tue, 1 Jul 2025 20:56:18 +0000 (13:56 -0700)
committershamoon <4887959+shamoon@users.noreply.github.com>
Sat, 2 Aug 2025 12:22:55 +0000 (08:22 -0400)
src-ui/src/app/components/common/pdf-editor/pdf-editor.component.ts

index 3d07438724d73133d03e64760dc295697625c7ce..4d35f5e2f7d8cbf0912cd49b12adc93c68966149 100644 (file)
@@ -4,7 +4,7 @@ import {
   moveItemInArray,
 } from '@angular/cdk/drag-drop'
 import { CommonModule } from '@angular/common'
-import { Component, OnInit, inject } from '@angular/core'
+import { Component, inject } from '@angular/core'
 import { FormsModule } from '@angular/forms'
 import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'
 import { PDFDocumentProxy, PdfViewerModule } from 'ng2-pdf-viewer'
@@ -31,10 +31,7 @@ interface PageOperation {
     NgxBootstrapIconsModule,
   ],
 })
-export class PDFEditorComponent
-  extends ConfirmDialogComponent
-  implements OnInit
-{
+export class PDFEditorComponent extends ConfirmDialogComponent {
   private documentService = inject(DocumentService)
   activeModal = inject(NgbActiveModal)
 
@@ -47,8 +44,6 @@ export class PDFEditorComponent
     return this.documentService.getPreviewUrl(this.documentID)
   }
 
-  ngOnInit() {}
-
   pdfLoaded(pdf: PDFDocumentProxy) {
     this.totalPages = pdf.numPages
     this.pages = Array.from({ length: this.totalPages }, (_, i) => ({