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. 32
      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

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

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

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

@ -912,7 +912,7 @@
"message": "This file export will be password protected and require the file password to decrypt." "message": "This file export will be password protected and require the file password to decrypt."
}, },
"exportPasswordDescription": { "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": { "confirmMasterPassword": {
"message": "Confirm Master Password" "message": "Confirm Master Password"

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

@ -912,7 +912,7 @@
"message": "This file export will be password protected and require the file password to decrypt." "message": "This file export will be password protected and require the file password to decrypt."
}, },
"exportPasswordDescription": { "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": { "confirmMasterPassword": {
"message": "Confirm Master Password" "message": "Confirm Master Password"

Loading…
Cancel
Save