1
0
mirror of https://github.com/bitwarden/desktop synced 2026-01-02 00:23:19 +00:00

Username generator (#1456)

* username generator implemented

* disable type when coming from add/edit

* restyle buttons to new icon-btn

* update generated-wrapper styles

* only show policy messages for passwords

* make generated-wrapper a standalone style

* Update src/app/vault/password-generator.component.html

Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>

* aria-expanded on show options

Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
This commit is contained in:
Kyle Spearrin
2022-03-29 15:01:57 -04:00
committed by GitHub
parent bc21703a2b
commit 9e0cc45704
13 changed files with 612 additions and 214 deletions

View File

@@ -317,10 +317,10 @@ export class AppComponent implements OnInit {
case "newFolder":
await this.addFolder();
break;
case "openPasswordGenerator":
// openPasswordGenerator has extended functionality if called in the vault
case "openGenerator":
// openGenerator has extended functionality if called in the vault
if (!this.router.url.includes("vault")) {
await this.openPasswordGenerator();
await this.openGenerator();
}
break;
case "convertAccountToKeyConnector":
@@ -402,14 +402,14 @@ export class AppComponent implements OnInit {
});
}
async openPasswordGenerator() {
async openGenerator() {
if (this.modal != null) {
this.modal.close();
}
[this.modal] = await this.modalService.openViewRef(
PasswordGeneratorComponent,
this.folderAddEditModalRef,
this.passwordGeneratorModalRef,
(comp) => (comp.showSelect = false)
);