2 changed files with 43 additions and 72 deletions
@ -1,50 +1,33 @@
@@ -1,50 +1,33 @@
|
||||
<bit-dialog> |
||||
<span bitDialogTitle> |
||||
{{ "changeKdf" | i18n }} |
||||
</span> |
||||
<form [formGroup]="form" [bitSubmit]="submit" autocomplete="off"> |
||||
<bit-dialog> |
||||
<span bitDialogTitle> |
||||
{{ "changeKdf" | i18n }} |
||||
</span> |
||||
|
||||
<span bitDialogContent> |
||||
<bit-callout type="warning">{{ "kdfSettingsChangeLogoutWarning" | i18n }}</bit-callout> |
||||
<form |
||||
id="form" |
||||
[formGroup]="form" |
||||
(ngSubmit)="submit()" |
||||
[appApiAction]="formPromise" |
||||
ngNativeValidate |
||||
autocomplete="off" |
||||
> |
||||
<div class="row"> |
||||
<div class="col-12"> |
||||
<bit-form-field class="tw-mb-1" |
||||
><bit-label>{{ "masterPass" | i18n }}</bit-label> |
||||
<input |
||||
bitInput |
||||
type="password" |
||||
required |
||||
formControlName="masterPassword" |
||||
appAutofocus |
||||
/> |
||||
<button |
||||
type="button" |
||||
bitSuffix |
||||
bitIconButton |
||||
bitPasswordInputToggle |
||||
[(toggled)]="showPassword" |
||||
></button |
||||
><bit-hint> |
||||
{{ "confirmIdentity" | i18n }} |
||||
</bit-hint></bit-form-field |
||||
> |
||||
</div> |
||||
</div> |
||||
</form> |
||||
</span> |
||||
<ng-container bitDialogFooter> |
||||
<button bitButton buttonType="primary" type="submit" [loading]="loading" form="form"> |
||||
<span>{{ "changeKdf" | i18n }}</span> |
||||
</button> |
||||
<button bitButton buttonType="secondary" type="button" bitDialogClose> |
||||
{{ "cancel" | i18n }} |
||||
</button> |
||||
</ng-container> |
||||
</bit-dialog> |
||||
<span bitDialogContent> |
||||
<bit-callout type="warning">{{ "kdfSettingsChangeLogoutWarning" | i18n }}</bit-callout> |
||||
<bit-form-field> |
||||
<bit-label>{{ "masterPass" | i18n }}</bit-label> |
||||
<input bitInput type="password" formControlName="masterPassword" appAutofocus /> |
||||
<button |
||||
type="button" |
||||
bitIconButton |
||||
bitSuffix |
||||
bitPasswordInputToggle |
||||
[(toggled)]="showPassword" |
||||
></button> |
||||
<bit-hint> |
||||
{{ "confirmIdentity" | i18n }} |
||||
</bit-hint></bit-form-field |
||||
> |
||||
</span> |
||||
<ng-container bitDialogFooter> |
||||
<button bitButton buttonType="primary" type="submit" bitFormButton> |
||||
<span>{{ "changeKdf" | i18n }}</span> |
||||
</button> |
||||
<button bitButton buttonType="secondary" type="button" bitFormButton bitDialogClose> |
||||
{{ "cancel" | i18n }} |
||||
</button> |
||||
</ng-container> |
||||
</bit-dialog> |
||||
</form> |
||||
|
||||
Loading…
Reference in new issue