1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

set generated password from add/edit

This commit is contained in:
Kyle Spearrin
2018-01-29 16:33:38 -05:00
parent ce84e8e428
commit 40c5cfa10b
5 changed files with 30 additions and 2 deletions

View File

@@ -175,6 +175,11 @@ export class AddEditComponent implements OnChanges {
}
generatePassword() {
if (this.cipher.login != null && this.cipher.login.password != null && this.cipher.login.password.length &&
!confirm(this.i18nService.t('overwritePasswordConfirmation'))) {
return;
}
this.onGeneratePassword.emit();
}
}