Revert "Print"
This reverts commit 2d1efd0b4e5f9ef6597bc739a2a94bbf8b63de13.
This commit is contained in:
parent
68b4df4d3d
commit
5418981539
@ -5,22 +5,15 @@
|
||||
<input class="form-control flex-grow-0 w-auto" type="number" min="1" [max]="previewNumPages" [(ngModel)]="previewCurrentPage" />
|
||||
<div class="input-group-text" i18n>of {{previewNumPages}}</div>
|
||||
</div>
|
||||
<div class="input-group input-group-sm me-2 d-none d-md-flex">
|
||||
<div class="input-group input-group-sm me-5 d-none d-md-flex">
|
||||
<button class="btn btn-outline-secondary" (click)="decreaseZoom()" i18n>-</button>
|
||||
<select class="form-select" (change)="onZoomSelect($event)">
|
||||
<option *ngFor="let setting of zoomSettings" [value]="setting" [selected]="previewZoomSetting == setting">
|
||||
{{ getZoomSettingTitle(setting) }}
|
||||
</option>
|
||||
</select>
|
||||
</select>
|
||||
<button class="btn btn-outline-secondary" (click)="increaseZoom()" i18n>+</button>
|
||||
</div>
|
||||
<div class="input-group input-group-sm me-5 d-none d-md-flex">
|
||||
<button class="btn btn-sm btn-outline-secondary me-5" (click)="print()">
|
||||
<svg class="buttonicon-sm" fill="currentColor">
|
||||
<use xlink:href="assets/bootstrap-icons.svg#printer" />
|
||||
</svg><span class="ps-2" i18n>Print</span>
|
||||
</button>
|
||||
</div>
|
||||
</ng-container>
|
||||
|
||||
<button type="button" class="btn btn-sm btn-outline-danger me-4" (click)="delete()" [disabled]="!userIsOwner" *pngxIfPermissions="{ action: PermissionAction.Delete, type: PermissionType.Document }">
|
||||
|
@ -76,7 +76,6 @@ import { PaperlessCustomFieldInstance } from 'src/app/data/paperless-custom-fiel
|
||||
import { CustomFieldsService } from 'src/app/services/rest/custom-fields.service'
|
||||
import { InvalidPDFException } from 'ngx-extended-pdf-viewer/lib/events/invalid-pdf-exception'
|
||||
import { PagesLoadedEvent } from 'ngx-extended-pdf-viewer/lib/events/pages-loaded-event'
|
||||
import { NgxExtendedPdfViewerService } from 'ngx-extended-pdf-viewer'
|
||||
import { pdfDefaultOptions } from 'ngx-extended-pdf-viewer'
|
||||
|
||||
enum DocumentDetailNavIDs {
|
||||
@ -202,8 +201,7 @@ export class DocumentDetailComponent
|
||||
private userService: UserService,
|
||||
private customFieldsService: CustomFieldsService,
|
||||
private http: HttpClient,
|
||||
private ref: ChangeDetectorRef,
|
||||
private printService: NgxExtendedPdfViewerService
|
||||
private ref: ChangeDetectorRef
|
||||
) {
|
||||
super()
|
||||
pdfDefaultOptions.passwordPrompt = {
|
||||
@ -981,8 +979,4 @@ export class DocumentDetailComponent
|
||||
this.previewZoomSetting =
|
||||
Object.values(ZoomSetting)[Math.max(4, currentIndex - 1)]
|
||||
}
|
||||
|
||||
print(): void {
|
||||
this.printService.print()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user