Browse Source

UI updates to encrypted export

264-UI
CarleyDiaz-Bitwarden 3 years ago
parent
commit
3609601209
No known key found for this signature in database
GPG Key ID: 7ECFE397309403A3
  1. 120
      apps/web/src/app/tools/import-export/export.component.html
  2. 2
      apps/web/src/locales/en/messages.json
  3. 2
      apps/web/src/locales/en_GB/messages.json

120
apps/web/src/app/tools/import-export/export.component.html

@ -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>

2
apps/web/src/locales/en/messages.json

@ -912,7 +912,7 @@ @@ -912,7 +912,7 @@
"message": "This file export will be password protected and require the file password to decrypt."
},
"exportPasswordDescription": {
"message": "This password will be used to export and import this file"
"message": "This password will be used to export and import this file."
},
"confirmMasterPassword": {
"message": "Confirm Master Password"

2
apps/web/src/locales/en_GB/messages.json

@ -912,7 +912,7 @@ @@ -912,7 +912,7 @@
"message": "This file export will be password protected and require the file password to decrypt."
},
"exportPasswordDescription": {
"message": "This password will be used to export and import this file"
"message": "This password will be used to export and import this file."
},
"confirmMasterPassword": {
"message": "Confirm Master Password"

Loading…
Cancel
Save