mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2415] PDF Viewer - open password protected pdf files (#3022)
* pdf password dialog * PDF viewer onPassword test * pdf password dialog * PDF viewer onPassword test * test * test * test * test * test * test * test * fix password test * travis improvements
This commit is contained in:
committed by
Eugenio Romano
parent
2951374cc0
commit
ae8b7419a0
29
lib/core/viewer/components/pdfViewer-password-dialog.html
Normal file
29
lib/core/viewer/components/pdfViewer-password-dialog.html
Normal file
@@ -0,0 +1,29 @@
|
||||
<div mat-dialog-title>
|
||||
<mat-icon>lock</mat-icon>
|
||||
</div>
|
||||
|
||||
<mat-dialog-content>
|
||||
<form (submit)="submit()">
|
||||
<mat-input-container class="adf-full-width">
|
||||
<input matInput
|
||||
type="password"
|
||||
placeholder="{{ 'ADF_VIEWER.PDF_DIALOG.PLACEHOLDER' | translate }}"
|
||||
[formControl]="passwordFormControl" />
|
||||
</mat-input-container>
|
||||
|
||||
<mat-error *ngIf="isError()">{{ 'ADF_VIEWER.PDF_DIALOG.ERROR' | translate }}</mat-error>
|
||||
</form>
|
||||
</mat-dialog-content>
|
||||
|
||||
<mat-dialog-actions class="adf-dialog-buttons">
|
||||
<span class="adf-fill-remaining-space"></span>
|
||||
|
||||
<button mat-button mat-dialog-close>{{ 'ADF_VIEWER.PDF_DIALOG.CLOSE' | translate }}</button>
|
||||
|
||||
<button mat-button
|
||||
class="adf-dialog-action-button"
|
||||
[disabled]="!isValid()"
|
||||
(click)="submit()">
|
||||
{{ 'ADF_VIEWER.PDF_DIALOG.SUBMIT' | translate }}
|
||||
</button>
|
||||
</mat-dialog-actions>
|
Reference in New Issue
Block a user