Skip to content

Commit

Permalink
Fix missing i18n and block ssh key creation in web (#12082)
Browse files Browse the repository at this point in the history
  • Loading branch information
quexten authored Nov 26, 2024
1 parent 85c6fe3 commit a95eaeb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ export class AddEditComponentV2 implements OnInit {
return this.i18nService.t(partOne, this.i18nService.t("typeIdentity").toLowerCase());
case CipherType.SecureNote:
return this.i18nService.t(partOne, this.i18nService.t("note").toLowerCase());
case CipherType.SshKey:
return this.i18nService.t(partOne, this.i18nService.t("typeSshKey").toLowerCase());
}
}

Expand Down
8 changes: 8 additions & 0 deletions apps/web/src/app/vault/individual-vault/add-edit.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ export class AddEditComponent extends BaseAddEditComponent implements OnInit, On
async ngOnInit() {
await super.ngOnInit();
await this.load();

// https://bitwarden.atlassian.net/browse/PM-10413
// cannot generate ssh keys so block creation
if (this.type === CipherType.SshKey && this.cipherId == null) {
this.type = CipherType.Login;
this.cipher.type = CipherType.Login;
}

this.viewOnly = !this.cipher.edit && this.editMode;
// remove when all the title for all clients are updated to New Item
if (this.cloneMode || !this.editMode) {
Expand Down

0 comments on commit a95eaeb

Please sign in to comment.