diff --git a/apps/web/src/app/organizations/vault/vault-items.component.ts b/apps/web/src/app/organizations/vault/vault-items.component.ts index 20edf980f8..0a5a1a939f 100644 --- a/apps/web/src/app/organizations/vault/vault-items.component.ts +++ b/apps/web/src/app/organizations/vault/vault-items.component.ts @@ -163,10 +163,6 @@ export class VaultItemsComponent extends BaseVaultItemsComponent implements OnDe } } - selectRow(item: VaultItemRow) { - this.checkRow(item); - } - checkRow(item: VaultItemRow, select?: boolean) { if (item instanceof TreeNode && item.node.id == null) { return; diff --git a/apps/web/src/app/organizations/vault/vault.component.html b/apps/web/src/app/organizations/vault/vault.component.html index dac8764cfc..05efbc704b 100644 --- a/apps/web/src/app/organizations/vault/vault.component.html +++ b/apps/web/src/app/organizations/vault/vault.component.html @@ -86,7 +86,7 @@ [activeFilter]="activeFilter" [initOrganization]="organization" (activeFilterChanged)="applyVaultFilter($event)" - (onCipherClicked)="editCipher($event)" + (onCipherClicked)="navigateToCipher($event)" (onAttachmentsClicked)="editCipherAttachments($event)" (onAddCipher)="addCipher()" (onEditCipherCollectionsClicked)="editCipherCollections($event)" diff --git a/apps/web/src/app/organizations/vault/vault.component.ts b/apps/web/src/app/organizations/vault/vault.component.ts index 86c2cecc78..e3e6fbc741 100644 --- a/apps/web/src/app/organizations/vault/vault.component.ts +++ b/apps/web/src/app/organizations/vault/vault.component.ts @@ -294,6 +294,10 @@ export class VaultComponent implements OnInit, OnDestroy { } } + async navigateToCipher(cipher: CipherView) { + this.go({ itemId: cipher?.id }); + } + async editCipher(cipher: CipherView) { return this.editCipherId(cipher?.id); } diff --git a/apps/web/src/app/vault/vault-items.component.html b/apps/web/src/app/vault/vault-items.component.html index 591ecb02dc..9982fd397e 100644 --- a/apps/web/src/app/vault/vault-items.component.html +++ b/apps/web/src/app/vault/vault-items.component.html @@ -71,8 +71,14 @@ - - + + - + - +