|
|
|
|
@ -84,73 +84,61 @@
@@ -84,73 +84,61 @@
|
|
|
|
|
<br /> |
|
|
|
|
|
|
|
|
|
<ng-container *ngIf="fileEncryptionType == encryptedExportType.FileEncrypted"> |
|
|
|
|
<div class="input-group"> |
|
|
|
|
<bit-form-field class="tw-w-full"> |
|
|
|
|
<bit-label>{{ "filePassword" | i18n }}</bit-label> |
|
|
|
|
<input |
|
|
|
|
bitInput |
|
|
|
|
type="{{ showFilePassword ? 'text' : 'password' }}" |
|
|
|
|
id="filePassword" |
|
|
|
|
formControlName="filePassword" |
|
|
|
|
name="password" |
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
<div class="input-group-append"> |
|
|
|
|
<button |
|
|
|
|
bitSuffix |
|
|
|
|
bitButton |
|
|
|
|
buttonType="secondary" |
|
|
|
|
appStopClick |
|
|
|
|
appA11yTitle="{{ 'toggleVisibility' | i18n }}" |
|
|
|
|
[attr.aria-pressed]="showFilePassword" |
|
|
|
|
(click)="toggleFilePassword()" |
|
|
|
|
type="button" |
|
|
|
|
> |
|
|
|
|
<i |
|
|
|
|
class="bwi bwi-lg" |
|
|
|
|
aria-hidden="true" |
|
|
|
|
[ngClass]="{ 'bwi-eye': !showFilePassword, 'bwi-eye-slash': showFilePassword }" |
|
|
|
|
></i> |
|
|
|
|
</button> |
|
|
|
|
</div> |
|
|
|
|
</bit-form-field> |
|
|
|
|
<div class="small text-muted"> |
|
|
|
|
<bit-form-field class="tw-w-full"> |
|
|
|
|
<bit-label>{{ "filePassword" | i18n }}</bit-label> |
|
|
|
|
<input |
|
|
|
|
bitInput |
|
|
|
|
type="{{ showFilePassword ? 'text' : 'password' }}" |
|
|
|
|
id="filePassword" |
|
|
|
|
formControlName="filePassword" |
|
|
|
|
name="password" |
|
|
|
|
/> |
|
|
|
|
<button |
|
|
|
|
type="button" |
|
|
|
|
appA11yTitle="{{ 'toggleVisibility' | i18n }}" |
|
|
|
|
[attr.aria-pressed]="showFilePassword" |
|
|
|
|
bitSuffix |
|
|
|
|
bitButton |
|
|
|
|
(click)="toggleFilePassword()" |
|
|
|
|
> |
|
|
|
|
<i |
|
|
|
|
aria-hidden="true" |
|
|
|
|
class="bwi bwi-lg bwi-eye" |
|
|
|
|
[ngClass]="{ 'bwi-eye': !showFilePassword, 'bwi-eye-slash': showFilePassword }" |
|
|
|
|
></i> |
|
|
|
|
</button> |
|
|
|
|
<bit-hint> |
|
|
|
|
{{ "exportPasswordDescription" | i18n }} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="input-group tw-mt-4"> |
|
|
|
|
<bit-form-field class="tw-w-full"> |
|
|
|
|
<bit-label>{{ "confirmFilePassword" | i18n }}</bit-label> |
|
|
|
|
<input |
|
|
|
|
bitInput |
|
|
|
|
type="{{ showConfirmFilePassword ? 'text' : 'password' }}" |
|
|
|
|
id="confirmFilePassword" |
|
|
|
|
formControlName="confirmFilePassword" |
|
|
|
|
name="confirmFilePassword" |
|
|
|
|
/> |
|
|
|
|
<div class="input-group-append"> |
|
|
|
|
<button |
|
|
|
|
bitSuffix |
|
|
|
|
bitButton |
|
|
|
|
buttonType="secondary" |
|
|
|
|
appStopClick |
|
|
|
|
appA11yTitle="{{ 'toggleVisibility' | i18n }}" |
|
|
|
|
[attr.aria-pressed]="showConfirmFilePassword" |
|
|
|
|
(click)="toggleConfirmFilePassword()" |
|
|
|
|
type="button" |
|
|
|
|
> |
|
|
|
|
<i |
|
|
|
|
class="bwi bwi-lg" |
|
|
|
|
aria-hidden="true" |
|
|
|
|
[ngClass]="{ |
|
|
|
|
'bwi-eye': !showConfirmFilePassword, |
|
|
|
|
'bwi-eye-slash': showConfirmFilePassword |
|
|
|
|
}" |
|
|
|
|
></i> |
|
|
|
|
</button> |
|
|
|
|
</div> |
|
|
|
|
</bit-form-field> |
|
|
|
|
</div> |
|
|
|
|
</bit-hint> |
|
|
|
|
</bit-form-field> |
|
|
|
|
|
|
|
|
|
<bit-form-field class="tw-w-full"> |
|
|
|
|
<bit-label>{{ "confirmFilePassword" | i18n }}</bit-label> |
|
|
|
|
<input |
|
|
|
|
bitInput |
|
|
|
|
type="{{ showConfirmFilePassword ? 'text' : 'password' }}" |
|
|
|
|
id="confirmFilePassword" |
|
|
|
|
formControlName="confirmFilePassword" |
|
|
|
|
name="confirmFilePassword" |
|
|
|
|
/> |
|
|
|
|
<button |
|
|
|
|
type="button" |
|
|
|
|
bitSuffix |
|
|
|
|
bitButton |
|
|
|
|
appA11yTitle="{{ 'toggleVisibility' | i18n }}" |
|
|
|
|
[attr.aria-pressed]="showConfirmFilePassword" |
|
|
|
|
(click)="toggleConfirmFilePassword()" |
|
|
|
|
> |
|
|
|
|
<i |
|
|
|
|
aria-hidden="true" |
|
|
|
|
class="bwi bwi-lg bwi-eye" |
|
|
|
|
[ngClass]="{ |
|
|
|
|
'bwi-eye': !showConfirmFilePassword, |
|
|
|
|
'bwi-eye-slash': showConfirmFilePassword |
|
|
|
|
}" |
|
|
|
|
></i> |
|
|
|
|
</button> |
|
|
|
|
</bit-form-field> |
|
|
|
|
</ng-container> |
|
|
|
|
</ng-container> |
|
|
|
|
|
|
|
|
|
|