mirror of
https://github.com/bitwarden/browser
synced 2026-02-19 10:54:00 +00:00
[PM-19090] Add ssh key header title to emergency access view modal
This commit is contained in:
committed by
jaasen-livefront
parent
0252ac84e5
commit
800b577423
@@ -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