From 1edc24e7b549bf60f20e650f6902db363567a7f3 Mon Sep 17 00:00:00 2001 From: Nick Krantz Date: Fri, 4 Oct 2024 09:51:20 -0500 Subject: [PATCH] Move comment to JSDoc --- .../web/src/app/vault/org-vault/vault.component.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/apps/web/src/app/vault/org-vault/vault.component.ts b/apps/web/src/app/vault/org-vault/vault.component.ts index d8c00720985..5c77ce4ab10 100644 --- a/apps/web/src/app/vault/org-vault/vault.component.ts +++ b/apps/web/src/app/vault/org-vault/vault.component.ts @@ -787,13 +787,17 @@ export class VaultComponent implements OnInit, OnDestroy { await this.openVaultItemDialog("form", cipherFormConfig); } + /** + * Edit the given cipher + * @param cipherView - The cipher to be edited + * @param cloneCipher - `true` when the cipher should be cloned. + * Used in place of the `additionalComponentParameters`, as + * the `editCipherIdV2` method has a differing implementation. + * @param defaultComponentParameters - A method that takes in an instance of + * the `AddEditComponent` to edit methods directly. + */ async editCipher( cipher: CipherView, - /** - * True when the cipher should be cloned - * Used in place of the `additionalComponentParameters` above, as - * the `editCipherIdV2` method has a differing implementation. - */ cloneCipher: boolean, additionalComponentParameters?: (comp: AddEditComponent) => void, ) {