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:
@@ -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");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user