1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-13 23:13:36 +00:00

add ssh key header title to emergency access view modal

This commit is contained in:
Jackson Engstrom
2026-01-21 15:24:11 -08:00
parent 0ad1ab448a
commit 70347dca63
2 changed files with 11 additions and 0 deletions

View File

@@ -166,5 +166,13 @@ describe("EmergencyViewDialogComponent", () => {
expect(component["title"]).toBe("viewItemHeaderNote");
});
it("sets ssh key title", () => {
mockCipher.type = CipherType.SshKey;
component["updateTitle"]();
expect(component["title"]).toBe("viewItemHeaderSshKey");
});
});
});

View File

@@ -90,6 +90,9 @@ export class EmergencyViewDialogComponent {
case CipherType.SecureNote:
this.title = this.i18nService.t("viewItemHeaderNote");
break;
case CipherType.SshKey:
this.title = this.i18nService.t("viewItemHeaderSshKey");
break;
}
}