This commit is contained in:
Michael Shamoon 2020-12-18 14:47:06 -08:00
parent f214fe1b3e
commit 2d841e7167
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
<div class="input-group-prepend">
<div class="input-group-text">Page </div>
</div>
<input class="form-control flex-grow-0 w-auto" type="number" min="1" [max]="previewNumPages" [(ngModel)]="currentPreviewPage" />
<input class="form-control flex-grow-0 w-auto" type="number" min="1" [max]="previewNumPages" [(ngModel)]="previewCurrentPage" />
<div class="input-group-append">
<div class="input-group-text">of {{previewNumPages}}</div>
</div>
@ -138,7 +138,7 @@
<div class="col-md-6 col-xl-8 mb-3">
<div class="pdf-viewer-container" *ngIf="getContentType() == 'application/pdf'">
<pdf-viewer [src]="previewUrl" [original-size]="false" [show-borders]="true" [show-all]="true" [(page)]="currentPreviewPage" (after-load-complete)="pdfPreviewLoaded($event)"></pdf-viewer>
<pdf-viewer [src]="previewUrl" [original-size]="false" [show-borders]="true" [show-all]="true" [(page)]="previewCurrentPage" (after-load-complete)="pdfPreviewLoaded($event)"></pdf-viewer>
</div>
</div>
</div>

View File

@ -48,7 +48,7 @@ export class DocumentDetailComponent implements OnInit {
tags: new FormControl([])
})
currentPreviewPage: number = 1
previewCurrentPage: number = 1
previewNumPages: number
constructor(